List<SubstitutionChunk> (@NotNull List<? extends SubstitutionChunk> substitutions) { final ArrayList<SubstitutionChunk> result = new ArrayList<>(); for (SubstitutionChunk s : substitutions) { if (s.getMappingKey() == null) { result.add(s); } } return result; }