public static @Nullable PsiReference findReferenceWithoutExpectedCaret(@NotNull Editor editor) {
    int offset = editor.getCaretModel().getOffset();
    return findReference(editor, offset);
  }
public static @Nullable PsiReference findReferenceWithoutExpectedCaret(@NotNull Editor editor)