List<Configurable> (@Nullable Project project, boolean withIdeSettings, boolean checkNonDefaultProject) { List<Configurable> list = new ArrayList<>(); if (withIdeSettings) { Application application = ApplicationManager.getApplication(); if (application != null) { for (ConfigurableEP<Configurable> extension : Configurable.APPLICATION_CONFIGURABLE.getExtensionList()) { addValid(list, ConfigurableWrapper.wrapConfigurable(extension, true), null, checkNonDefaultProject); } } } if (project != null && !project.isDisposed()) { for (ConfigurableEP<Configurable> extension : Configurable.PROJECT_CONFIGURABLE.getExtensions(project)) { addValid(list, ConfigurableWrapper.wrapConfigurable(extension, true), project, checkNonDefaultProject); } } return list; }