String () { // A qualified name can be null e.g. for a local function String scopeName = myScopeOwner != null ? Objects.requireNonNullElse(myScopeOwner.getQualifiedName(), myScopeOwner.getName()) : null; return "PyGenericType: " + (scopeName != null ? scopeName + ":" : "") + getName(); }