private static @Nullable JavaSdkVersion resolveSdkVersion(int version) {
    if (version < 0 || version >= JavaSdkVersion.values().length) {
      LOG.warn(String.format(
        "Unsupported jdk version detected (%d). Expected to get number from range [0; %d]", version, JavaSdkVersion.values().length
      ));
      return null;
    }
    for (JavaSdkVersion sdkVersion : JavaSdkVersion.values()) {
      if (sdkVersion.ordinal() == version) {
        return sdkVersion;
      }
    }
    assert false : version + ", max value: " + JavaSdkVersion.values().length;
    return null;
  }
private static @Nullable JavaSdkVersion resolveSdkVersion(int version)