@Override public PsiClass createPsi(@NotNull final ASTNode node) { if (node instanceof EnumConstantInitializerElement) { return new PsiEnumConstantInitializerImpl(node); } else if (node instanceof AnonymousClassElement) { return new PsiAnonymousClassImpl(node); } return new PsiClassImpl(node); }
@Override public PsiClass createPsi(@NotNull final ASTNode node) { if(node instanceof EnumConstantInitializerElement) { return new PsiEnumConstantInitializerImpl(node); } else if(node instanceof AnonymousClassElement) { return new PsiAnonymousClassImpl(node); } return new PsiClassImpl(node); }