public static @NotNull String loadText(@NotNull VirtualFile file, int length) throws IOException {
    try (InputStreamReader reader = new InputStreamReader(file.getInputStream(), file.getCharset())) {
      return new String(FileUtilRt.loadText(reader, length));
    }
  }
public static @NotNull String loadText(@NotNull VirtualFile file, int length)