private void showSuccessHint(@NotNull Editor editor,
                               @NotNull @HintText String text,
                               @PositionFlags short position,
                               @Nullable HyperlinkListener listener) {
    LightweightHint hint = new LightweightHint(HintUtil.createSuccessLabel(text, listener));
    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);
  }
private void showSuccessHint(@NotNull Editor editor,
                               @NotNull @HintText String text,
                               @PositionFlags short position,
                               @Nullable HyperlinkListener listener)