String (@Nullable Project project, byte @NotNull [] bytes, @NotNull FilePath filePath) { Charset charset = DiffContentFactoryImpl.guessCharset(project, bytes, filePath); return CharsetToolkit.decodeString(bytes, charset); }