public static boolean isBinaryChangeAndCanShow(Project project, Change change) { // todo bug here would appear when there would be another diff providers for bimary revisions return isBinaryChange(change) && (change.getAfterRevision() == null || BinaryDiffTool.canShow(project, change.getVirtualFile())); }