PsiClassType () { PsiClassType type = dereference(myCachedBaseType); if (type != null && type.isValid()) return type; type = new GrClassReferenceType(getBaseClassReferenceGroovy()); myCachedBaseType = new SoftReference<>(type); return type; }