static @Nullable HighlightInfo findInfoUnderCaret(@NotNull Project project, @NotNull Editor editor) {
    if (editor instanceof EditorWindow) {
      throw new IllegalArgumentException("Unexpected injected editor: " + editor);
    }
    int offset = editor.getCaretModel().getOffset();
    DaemonCodeAnalyzerImpl codeAnalyzer = (DaemonCodeAnalyzerImpl)DaemonCodeAnalyzer.getInstance(project);
    return codeAnalyzer.findHighlightByOffset(editor.getDocument(), offset, false);
  }
static @Nullable HighlightInfo findInfoUnderCaret(@NotNull Project project, @NotNull Editor editor)