docs: static void checkConstant(final Object cst) {
          if (!(cst instanceof Integer) && !(cst instanceof Float)
                  && !(cst instanceof Long) && !(cst instanceof Double)
                  && !(cst instanceof String)) {
              throw new IllegalArgumentException("Invalid constant: " + cst);
          }
      }