List<NamedScope> () { if (myProject.isDefault() || !ProjectLevelVcsManager.getInstance(myProject).hasActiveVcss()) { return Collections.emptyList(); } ChangeListManager changeListManager = ChangeListManager.getInstance(myProject); List<NamedScope> result = new ArrayList<>(); result.add(new ChangeListScope(changeListManager)); if (ChangesUtil.hasMeaningfulChangelists(myProject)) { List<LocalChangeList> changeLists = changeListManager.getChangeLists(); boolean skipSingleDefaultCL = Registry.is("vcs.skip.single.default.changelist") && changeLists.size() == 1 && changeLists.get(0).isBlank(); if (!skipSingleDefaultCL) { for (ChangeList list : changeLists) { result.add(new ChangeListScope(changeListManager, list.getName())); } } } return result; }