Color (@NotNull DiffChange change) { TextDiffType type = getDiffType(change); if (type == TextDiffType.INSERTED) return FileStatus.ADDED.getColor(); if (type == TextDiffType.DELETED) return FileStatus.DELETED.getColor(); if (type == TextDiffType.MODIFIED) return FileStatus.MODIFIED.getColor(); return JBColor.black; // unchanged }