void () { GutterIconDescriptor.Option option = JavaLineMarkerProvider.LAMBDA_OPTION; boolean isEnabled = LineMarkerSettings.getSettings().isEnabled(option); LineMarkerSettings.getSettings().setEnabled(option, true); Disposer.register(getTestRootDisposable(), () -> LineMarkerSettings.getSettings().setEnabled(option, isEnabled)); configureByFile(getBasePath() + getTestName(false) + ".java"); doHighlighting(); if (CodeInsightTestFixtureImpl.processGuttersAtCaret(getEditor(), getProject(), mark -> { Shortcut shortcut = ActionManager.getInstance().getAction(IdeActions.ACTION_GOTO_SUPER).getShortcutSet().getShortcuts()[0]; assertEquals( "<html><body><p>Overrides method in <a href=\"#element/I#run\"><code>I</code></a></p><p style='margin-top:8px;'><font size='2' color='#787878'>Press " + KeymapUtil.getShortcutText(shortcut) + " to navigate</font></p></body></html>", mark.getTooltipText()); return false; })) { fail("Gutter expected"); } }