SimpleTextAttributes (boolean isSelected, Color fileBgColor, Color selectionBg, Color selectionFg, @NotNull TextChunk chunk) { SimpleTextAttributes background = chunk.getSimpleAttributesIgnoreBackground(); return isSelected ? new SimpleTextAttributes(selectionBg, selectionFg, null, background.getStyle()) : deriveBgColor(background, fileBgColor); }