void (@NotNull Scopes.Type scopeType) { myScopeType = scopeType; ((CardLayout)myScopeDetailsPanel.getLayout()).show(myScopeDetailsPanel, scopeType.toString()); if (myScopeType == Scopes.Type.MODULE) myModulesComboBox.requestFocus(); else if (myScopeType == Scopes.Type.DIRECTORY) myDirectoryComboBox.getComboBox().requestFocus(); else if (myScopeType == Scopes.Type.NAMED) myScopesComboBox.requestFocus(); setScopeFromUI(); myToolbar.updateActionsImmediately(); }