OptPane () { List<NamingConvention<T>> values = new ArrayList<>(myNamingConventions.values()); Collections.reverse(values); return OptPane.pane(new OptCheckboxPanel(ContainerUtil.map(values, convention -> { String shortName = convention.getShortName(); NamingConventionBean bean = myNamingConventionBeans.get(shortName); //noinspection LanguageMismatch return bean.getOptionsPane().prefix(shortName).asCheckbox(shortName, convention.getElementDescription()); }))); }