boolean () { PsiClassStub<?> stub = getGreenStub(); if (stub != null) { return stub.isAnonymousInQualifiedNew(); } PsiElement parent = getParent(); return parent instanceof PsiNewExpression && ((PsiNewExpression)parent).getQualifier() != null; }