JBIterable<Change> () { JBIterable<Change> changes = VcsTreeModelData.selected(this) .iterateUserObjects(Change.class); JBIterable<Change> hijackedChanges = getSelectedModifiedWithoutEditing() .map(file -> toHijackedChange(myProject, file)) .filterNotNull(); return changes.append(hijackedChanges); }