Configurable (final @NlsContexts.ConfigurableName String name, final PyConsoleSpecificOptionsPanel panel, final PyConsoleOptions.PyConsoleSettings settings, final String helpReference) { return new SearchableConfigurable() { @Override public @NotNull String getId() { return "PyConsoleConfigurable." + name; } @Override public @Nls String getDisplayName() { return name; } @Override public String getHelpTopic() { return helpReference; } @Override public JComponent createComponent() { return panel.createPanel(settings); } @Override public boolean isModified() { return panel.isModified(); } @Override public void apply() { panel.apply(); } @Override public void reset() { panel.reset(); } }; }