You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Include Return Type Annotations in Method Hover Tooltip #4407
Description
When hovering over a method in the editor, the tooltip currently shows the method signature and Javadoc (if available). However, annotations applied to the method’s return type are not displayed.
This feature request proposes enhancing the hover tooltip to include annotations declared on the return type.
Motivation / Use Case
Return type annotations (e.g., nullability annotations like @nullable, @nonnull, or custom type-use annotations) are critical for understanding API contracts, static analysis, and preventing runtime errors.
Not displaying them in hover:
Hides important semantic information
Forces developers to navigate to the declaration
Reduces the usefulness of hover as a quick inspection tool
Reacted by Mike Cusack, hskang-peso and Mephisto5558
Activity
MikeJCusack commentedon May 1, 2026
This would be greatly appreciated for use with JSpecify.