code: public static QualifiedName of(Class<?> cls) {
      if (cls.getEnclosingClass() != null) {
        return QualifiedName.of(cls.getEnclosingClass()).nestedType(cls.getSimpleName());
      } else if (cls.getPackage() != null) {
        return QualifiedName.of(cls.getPackage().getName(), cls.getSimpleName());
      } else {
        return QualifiedName.of("", cls.getSimpleName());
      }
    }
docs: Returns a {@link QualifiedName} for {@code cls}, unshading if necessary.