code: public static Integer getInteger(Config config, String path) {
          try {
              Object obj = config.getAnyRef(path);
              return obj instanceof Number ? ((Number) obj).intValue() : null;
          } catch (ConfigException.Missing | ConfigException.WrongType e) {
              if (e instanceof ConfigException.WrongType) {
                  LOGGER.warn(e.getMessage(), e);
              }
              return null;
          }
      }
docs: Get a configuration as Integer. Return {@code null} if missing or wrong type.
  
  @param config
  @param path
  @return