List<JComponent> () { List<JComponent> titles = DiffUtil.createTextTitles(this, myRequest, getEditors()); assert titles.size() == 2; BorderLayoutPanel titleWithCheckbox = JBUI.Panels.simplePanel(); if (titles.get(1) != null) titleWithCheckbox.addToCenter(titles.get(1)); titleWithCheckbox.addToLeft(myExcludeAllCheckboxPanel); return Arrays.asList(titles.get(0), titleWithCheckbox); }