@Override public void visitNewExpression(PsiNewExpression expression) { PsiAnonymousClass anonymousClass = expression.getAnonymousClass(); if (anonymousClass == null) { return; } JavaElementArrangementEntry entry = createNewEntry( anonymousClass, anonymousClass.getTextRange(), CLASS, anonymousClass.getName(), false); processEntry(entry, null, anonymousClass); }
@Override public void visitAnonymousClass(PsiAnonymousClass aClass) { JavaElementArrangementEntry entry = createNewEntry(aClass, aClass.getTextRange(), ANONYMOUS_CLASS, aClass.getName(), false); processEntry(entry, null, aClass); }