docs: public static String packageNameOf(Class<?> clazz) {
          String name = clazz.getName();
          int pos = name.lastIndexOf('.');
          E.unexpectedIf(pos < 0, "Class does not have package: " + name);
          return name.substring(0, pos);
      }