boolean (@NotNull Project project, Editor editor, PsiFile file) { myCandidates = null; if (!file.getManager().isInProject(file)) return false; GrReferenceExpression invokedExpression = getMethodExpression(); if (invokedExpression == null || invokedExpression.getQualifierExpression() != null) return false; return !getCandidates().isEmpty(); }