boolean (PsiElement context) { PsiElement previous = PsiImplUtil.realPrevious(PsiTreeUtil.prevLeaf(context)); if (previous != null && GroovyTokenTypes.mAT.equals(previous.getNode().getElementType()) && (context.getParent() != null && context.getParent().getParent() instanceof GroovyFile || context.getParent() instanceof GrCodeReferenceElement && context.getParent().getParent() instanceof GrAnnotation)) { return true; } return false; }