code: @NonNull
    public static String assertNotNullOrEmpty(String text, @Nullable String name) {
      if (isNullOrEmpty(text)) {
        throw new NullPointerException(name + " cannot be null or empty");
      }
      return text;
    }
docs: Throws a {@link NullPointerException} if the given text is null or empty.