void () { myPairs = new ArrayList<>(); final List<IProperty> properties = myBundle.getProperties(); for (IProperty property : properties) { final String key = property.getUnescapedKey(); final String value = property.getValue(); if (key != null) { myPairs.add(Couple.of(key, value != null ? value : NULL)); } } myPairs.sort(new MyPairComparator()); }