PsiElement (PsiFile psiFile, int caretOffset) { PsiElement element = findPrevAtOffset(psiFile, caretOffset); if (element == null) { element = findNextAtOffset(psiFile, caretOffset); } return element; }