SimpleColoredComponent (int problemsCount) { SimpleColoredComponent label = new SimpleColoredComponent(); appendTextToLabel(label, problemsCount); label.setBorder(JBUI.Borders.emptyRight(2)); return label; }