docs: public final @DottedClassName
      String getPackageName() {
          int lastDot = className.lastIndexOf('.');
          if (lastDot < 0) {
              return "";
          } else {
              return className.substring(0, lastDot);
          }
      }