SimpleTextAttributes (final boolean selected, final boolean taskClosed) { return new SimpleTextAttributes(SimpleTextAttributes.STYLE_PLAIN, taskClosed ? UIUtil.getLabelDisabledForeground() : UIUtil.getListForeground(selected)); }