List<PsiVariable> () { List<PsiVariable> variables = new ArrayList<>(); for (List<BoxingInfo> infos : myBoxingMap.values()) { for (BoxingInfo boxingInfo : infos) { if (boxingInfo.myHasReferences && boxingInfo.primitiveReplacementReducesUnnecessaryOperationCount()) { variables.add(boxingInfo.myVariable); } } } return variables; }