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