CardLayout cardLayout = (CardLayout) filterDetailsPanel.getLayout();
if (filter == null) {
cardLayout.show(filterDetailsPanel, BLANK_PANEL_ID);
} else {
String id = filter.getId();
ConfigurationEditorForm configurationEditorForm = filterDetailPanels.get(id);
if (configurationEditorForm == null) {
filterDetailsPanel.add(filter.createComponent(), id);
filterDetailPanels.put(id, filter.getSettingsEditor());
}
cardLayout.show(filterDetailsPanel, id);