void (Editor view, EditorColorsScheme scheme, Map<TextAttributesKey, String> displayText) { int offset = getStartOffset(); RendererWrapper renderer = new RendererWrapper(new HintRenderer(myText) { @Override protected @Nullable TextAttributes getTextAttributes(@NotNull Editor editor) { return editor.getColorsScheme().getAttributes(getHighlightKey()); } }, myAddBorder); view.getInlayModel().addInlineElement(offset, false, renderer); }