@Nullable
  private static HyperlinkInfo getLink(@Nullable Editor editor, @Nullable Project project) {
    if (editor != null && project != null) {
      int offset = editor.getCaretModel().getOffset();
      return EditorHyperlinkSupport.get(editor).getHyperlinkAt(offset);
    }
    return null;
  }
@Nullable
  private static HyperlinkInfo getLink(@Nullable Editor editor, @Nullable Project project)