PsiElement (Editor editor, int offset, @Nullable PsiFile file, PsiElement contextElement) { if (LookupManager.getInstance(myProject).getActiveLookup() != null) { return assertSameProject(getElementFromLookup(editor, file)); } return findTargetElementAtOffset(editor, offset, file, contextElement); }