NewColorAndFontPanel (@NotNull ColorAndFontOptions options) { final SchemesPanel schemesPanel = new SchemesPanel(options); final OptionsPanelImpl optionsPanel = new OptionsPanelImpl(options, schemesPanel, getVcsGroup()); final VcsPreviewPanel previewPanel = new VcsPreviewPanel(); schemesPanel.addListener(new ColorAndFontSettingsListener.Abstract() { @Override public void schemeChanged(@NotNull final Object source) { previewPanel.setColorScheme(options.getSelectedScheme()); optionsPanel.updateOptionsList(); } }); return new NewColorAndFontPanel(schemesPanel, optionsPanel, previewPanel, getVcsGroup(), null, null); }