@NlsSafe
  @NotNull
  public static String tryLoadFile(@NotNull final File file, @Nullable String encoding) throws RepoStateException {
    return tryOrThrow(() -> StringUtil.convertLineSeparators(FileUtil.loadFile(file, encoding)).trim(), file);
  }
@NlsSafe
  @NotNull
  public static String tryLoadFile(@NotNull final File file, @Nullable String encoding)