docs: protected <T> T getOptionalValue(String propertyName, T defaultValue, Class<T> propertyType) {
  
          T result = ConfigOptionalValue.getValue(propertyName, propertyType);
          if (result == null) {
              result = defaultValue;
          }
          return result;
      }