AsyncChangesTreeModel () { return SimpleAsyncChangesTreeModel.create(grouping -> { List<LocalChangeList> allLists = ChangeListManager.getInstance(myProject).getChangeLists(); List<LocalChangeList> selectedLists = ContainerUtil.filter(allLists, list -> !list.getChanges().isEmpty()); return TreeModelBuilder.buildFromChangeLists(myProject, grouping, selectedLists, Registry.is("vcs.skip.single.default.changelist")); }); }