boolean (PsiElement context) { return (context.getParent() instanceof GrCodeReferenceElement && context.getParent().getParent() instanceof GrClassTypeElement && context.getParent().getParent().getParent() instanceof GrTypeDefinitionBody) || context.getParent() instanceof GrTypeDefinitionBody; }