PsiClass (PsiClassStub stub) { boolean anonymous = stub instanceof PsiClassStubImpl && ((PsiClassStubImpl<?>)stub).isAnonymousInner(); return anonymous ? new ClsAnonymousClass(stub) : new ClsClassImpl(stub); }