private static byte @Nullable [] loadLocalFileContent(@NotNull FilePath path) {
    try {
      return ReadAction.compute(() -> {
        VirtualFile file = path.getVirtualFile();
        if (file == null || !file.isValid()) {
          LOG.debug("File not found: " + path);
          return null;
        }

        return file.contentsToByteArray();
      });
    }
    catch (IOException e) {
      LOG.warn(e);
      return null;
    }
  }
private static byte @Nullable [] loadLocalFileContent(@NotNull FilePath path)