void () { List<ShelvedChangeList> allSchemes = new ArrayList<>(schemeManager.getAllSchemes()); for (int i = 0, size = allSchemes.size(); i < size; i++) { ShelvedChangeList t = allSchemes.get(i); if (!t.isValid()) { schemeManager.removeScheme(t); } } }