List<FileStatusColorDescriptor> (FileStatus @NotNull [] fileStatuses, @NotNull EditorColorsScheme scheme) { EditorColorsScheme baseScheme = scheme instanceof AbstractColorsScheme ? ((AbstractColorsScheme)scheme).getParentScheme() : null; List<FileStatusColorDescriptor> descriptors = new ArrayList<>(); for (FileStatus fileStatus : fileStatuses) { Color color = scheme.getColor(fileStatus.getColorKey()); Color originalColor = baseScheme != null ? baseScheme.getColor(fileStatus.getColorKey()) : null; descriptors.add(new FileStatusColorDescriptor(fileStatus, color, originalColor)); } descriptors.sort(Comparator.comparing(d -> d.getStatus().getText())); return descriptors; }