void (boolean selected) { myTreeList.excludeChanges(myTreeList.getIncludedSet()); if (selected) { List<Change> selectedChanges = VcsTreeModelData.selected(myTreeList).userObjects(Change.class); myTreeList.includeChanges(selectedChanges); } else { myTreeList.includeChanges(mySelected); } PropertiesComponent.getInstance().setValue(MOVE_CHANGES_CURRENT_ONLY, selected); }