ivate void showHintInPreview(@NotNull String text) {
      // Can't access ConsoleViewImpl in this module to cast ConsoleView and get Editor from it.
      // So, there is a little bit more hacky way.
      Editor editor = myPreviewComponent.getPreferredFocusableComponent() instanceof EditorComponentImpl editorComponent
                      ? editorComponent.getEditor() : null;
      if (editor != null) {
        HintManager.getInstance().showInformationHint(editor, text, HintManager.ABOVE);
      }
    }
 
ivate void showHintInPreview(@NotNull String text) {