Color (@NotNull JTree tree) { JTable table = getTableFor(tree); if (table != null) return getSelectionBackground(table); // tree table Color background = getCustomColor(tree, CUSTOM_SELECTION_BACKGROUND); return background != null ? background : CurrentTheme.Tree.Selection.background(isFocused(tree)); }