public static EventLogBuild fromString()

in src/main/java/com/intellij/internal/statistic/eventLog/EventLogBuild.java [27:39]


  public static EventLogBuild fromString(@Nullable String version) {
    if (version == null || StringUtil.isEmptyOrSpaces(version)) {
      return null;
    }

    String versionWithoutCode = removeProductCode(version);
    int separator = versionWithoutCode.indexOf('.');
    if (separator > 0) {
      List<String> components = StringUtil.split(versionWithoutCode, '.');
      return new EventLogBuild(toIntArray(components));
    }
    return new EventLogBuild(tryParseInt(versionWithoutCode), 0);
  }