void (@NotNull List<? extends NamedScope> availableScopes) { myScopeListModel = new DefaultComboBoxModel<>(); for (NamedScope scope : availableScopes) { myScopeListModel.addElement(scope.getPresentableName()); } myForm.getScopesList().setModel(myScopeListModel); }