public static @NotNull Charset guessCharset(@Nullable Project project, byte @NotNull [] content, @NotNull FilePath filePath) {
    return guessCharset(project, content, filePath.getFileType(), filePath.getPath(), filePath.getVirtualFile(), null);
  }
public static @NotNull Charset guessCharset(@Nullable Project project, byte @NotNull [] content, @NotNull FilePath filePath)