private static @NotNull BuildNumber fromFile() {
    String homePath = PathManager.getHomePath();
    Path home = Paths.get(homePath);

    BuildNumber result = readFile(home.resolve("build.txt"));
    if (result != null) {
      return result;
    }

    if (SystemInfoRt.isMac) {
      result = readFile(home.resolve("Resources/build.txt"));
      if (result != null) {
        return result;
      }
    }

    String communityHomePath = PathManager.getCommunityHomePath();
    if (!communityHomePath.equals(homePath)) {
      result = readFile(Paths.get(communityHomePath, "build.txt"));
      if (result != null) {
        return result;
      }
    }

    return Objects.requireNonNull(fromString(FALLBACK_VERSION));
  }
private static @NotNull BuildNumber fromFile()