boolean (LocalTask task, LocalChangeList list) { for (ChangeListInfo changeListInfo : new ArrayList<>(task.getChangeLists())) { if (changeListInfo.id.equals(list.getId())) { return true; } } return false; }