boolean (PsiElement context) { if (context.getParent() instanceof GrCodeReferenceElement) { PsiElement pparent = context.getParent().getParent(); if (pparent instanceof GrNewExpression) return true; } return false; }