public ArrangementColorsProviderImpl(@Nullable ArrangementColorsAware colorsAware) { myColorsAware = colorsAware; // Default settings. myDefaultNormalAttributes.setForegroundColor(UIUtil.getTreeTextForeground()); myDefaultNormalAttributes.setBackgroundColor(UIUtil.getPanelBackground()); myDefaultSelectedAttributes.setForegroundColor(UIUtil.getTreeSelectionForeground()); myDefaultSelectedAttributes.setBackgroundColor(UIUtil.getTreeSelectionBackground()); myDefaultNormalBorderColor = UIUtil.getBorderColor(); Color selectionBorderColor = UIUtil.getTreeSelectionBorderColor(); if (selectionBorderColor == null) { selectionBorderColor = GroupedElementsRenderer.SELECTED_FRAME_FOREGROUND; } myDefaultSelectedBorderColor = selectionBorderColor; }