void (@NotNull RangeHighlighter highlighter, @NotNull HyperlinkInfo hyperlinkInfo, @Nullable TextAttributes followedHyperlinkAttributes, boolean fireChanged) { HyperlinkInfoTextAttributes attributes = new HyperlinkInfoTextAttributes(hyperlinkInfo, followedHyperlinkAttributes); highlighter.putUserData(HYPERLINK, attributes); if (fireChanged) { MarkupEditorFilter filter = highlighter.getEditorFilter(); highlighter.setEditorFilter(__ -> true); highlighter.setEditorFilter(filter); // to fireChanged } }