@Nullable private static Color getGutterColor(@NotNull Range range, @Nullable Editor editor) { final EditorColorsScheme scheme = getColorScheme(editor); switch (range.getType()) { case Range.INSERTED: return scheme.getColor(EditorColors.ADDED_LINES_COLOR); case Range.DELETED: return scheme.getColor(EditorColors.DELETED_LINES_COLOR); case Range.MODIFIED: return scheme.getColor(EditorColors.MODIFIED_LINES_COLOR); default: assert false; return null; } }
@Nullable private static Color getErrorStripeColor(@NotNull Range range, @Nullable Editor editor) { final EditorColorsScheme scheme = getColorScheme(editor); switch (range.getType()) { case Range.INSERTED: return scheme.getAttributes(DiffColors.DIFF_INSERTED).getErrorStripeColor(); case Range.DELETED: return scheme.getAttributes(DiffColors.DIFF_DELETED).getErrorStripeColor(); case Range.MODIFIED: return scheme.getAttributes(DiffColors.DIFF_MODIFIED).getErrorStripeColor(); default: assert false; return null; } }