LocalChangeList (Project project) { ChangeListManagerEx manager = ChangeListManagerEx.getInstanceEx(project); String changeListName = myListPanel.getChangeListName(); LocalChangeList localChangeList = manager.findChangeList(changeListName); if (localChangeList == null) { localChangeList = manager.addChangeList(changeListName, myListPanel.getDescription(), myData); myListPanel.changelistCreatedOrChanged(localChangeList); } else { //update description if changed manager.editComment(changeListName, myListPanel.getDescription()); } rememberSettings(project, localChangeList.isDefault(), myListPanel.getMakeActiveCheckBox().isSelected()); if (myListPanel.getMakeActiveCheckBox().isSelected()) { manager.setDefaultChangeList(localChangeList); } return localChangeList; }