AnalysisScope () { ChangeList changeList = myModel != null ? (ChangeList)myModel.getSelectedItem() : null; List<VirtualFile> files; if (changeList == null) { files = myChangeListManager.getAffectedFiles(); } else { LocalChangeList list = myChangeListManager.findChangeList(changeList.getName()); if (list != null) { files = ChangesUtil.iterateAfterRevisionFiles(list.getChanges()).toList(); } else { files = Collections.emptyList(); } } return new AnalysisScope(myProject, new HashSet<>(files)); }