PsiClass (@NotNull GrTypeDefinition grType, PsiClassType @NotNull [] extendsListTypes) { if (extendsListTypes.length == 0) return getBaseClass(grType); final PsiClass superClass = extendsListTypes[0].resolve(); return superClass != null ? superClass : getBaseClass(grType); }