List<MergeRange> () { for (MergeRange range : myIterable) { MergeRange expanded = expandWhitespaces(myText1, myText2, myText3, range); MergeRange trimmed = trim(myText1, myText2, myText3, expanded); if (!trimmed.isEmpty() && !isEqualsIgnoreWhitespaces(myText1, myText2, myText3, trimmed)) { myChanges.add(trimmed); } } return myChanges; }