RelatedItemLineMarkerInfo<PsiElement> (@NotNull PsiElement element, @Nullable GutterIconNavigationHandler<PsiElement> navigationHandler) { NavigationGutterIconRenderer renderer = createGutterIconRenderer(element.getProject(), navigationHandler); String tooltip = renderer.getTooltipText(); return new RelatedItemLineMarkerInfo<>( element, element.getTextRange(), renderer.getIcon(), tooltip == null ? null : new ConstantFunction<>(tooltip), navigationHandler, renderer.getAlignment(), () -> computeGotoTargets()); }