boolean (@NotNull Project project, Editor editor, PsiFile file) { if (!isCorrectModule(file)) return false; int offset = editor.getCaretModel().getOffset(); final GrAnnotation anno = PsiTreeUtil.findElementOfClassAtOffset(file, offset, GrAnnotation.class, false); if (anno != null && isGrabAnnotation(anno)) { return true; } PsiElement at = file.findElementAt(offset); if (at != null && isUnresolvedRefName(at) && findGrab(file) != null) { return true; } return false; }