code: public static Range range(char first, Character second) {
          if (second == null) {
              return new Range(first);
          } else {
              return new Range(first, ((Character) second).charValue());
          }
      }
docs: second is a Character to detect optional values