void (@NotNull Editor editor, @NotNull @HintText String text, short position) { JComponent label = HintUtil.createErrorLabel(text); LightweightHint hint = new LightweightHint(label); Point p = getClientManager(editor).getHintPosition(hint, editor, position); int flags = HintManager.HIDE_BY_ANY_KEY | HintManager.HIDE_BY_TEXT_CHANGE | HintManager.HIDE_BY_SCROLLING; showEditorHint(hint, editor, p, flags, 0, false); }