DumbAwareAction (@NotNull PsiFile psiFile) { String langName = getLangName(psiFile); return DumbAwareAction.create( ApplicationBundle.message("code.style.widget.configure.indents", langName), event -> { Configurable configurable = findCodeStyleConfigurableId(psiFile.getProject(), langName); if (configurable instanceof CodeStyleConfigurableWrapper) { ShowSettingsUtil.getInstance().editConfigurable( event.getProject(), configurable, () -> { CodeStyleConfigurableWrapper configurableWrapper = (CodeStyleConfigurableWrapper)configurable; configurableWrapper.setSchemesPanelVisible(false); configurableWrapper.selectTab(ApplicationBundle.message("title.tabs.and.indents")); }); } } ); }