void () { if (myHyperlink != null) { ConsoleViewImpl mainConsoleView = getMainConsoleView(); if (mainConsoleView != null) { ApplicationManager.getApplication().invokeLater( () -> { EditorHyperlinkSupport hyperlinkSupport = mainConsoleView.getHyperlinks(); int startOffset = myHyperlink.getStartOffset(); int endOffset = myHyperlink.getEndOffset(); TextAttributes attributes = myHyperlink.getTextAttributes(mainConsoleView.getEditor().getColorsScheme()); TextAttributes inactiveTextAttributes = attributes != null ? attributes.clone() : TextAttributes.ERASE_MARKER.clone(); inactiveTextAttributes.setForegroundColor(NamedColorUtil.getInactiveTextColor()); inactiveTextAttributes.setEffectColor(NamedColorUtil.getInactiveTextColor()); inactiveTextAttributes.setFontType(Font.ITALIC); hyperlinkSupport.removeHyperlink(myHyperlink); hyperlinkSupport.addHighlighter(startOffset, endOffset, inactiveTextAttributes, HighlighterLayer.CONSOLE_FILTER); } , myProject.getDisposed()); } } }