ArrayList<UsageInfo> () { ArrayList<UsageInfo> result = new ArrayList<UsageInfo>(); for (int i = 0; i < myChecked.length; i++) { if (myChecked[i]) { result.add(myOverridingMethods.get(i)); } } return result; }