EditableDictionary (@NotNull String name) { if (dictionaries == null) { return null; } EditableDictionary result = null; for (EditableDictionary dictionary : dictionaries) { if (dictionary.getName().equals(name)) { result = dictionary; break; } } return result; }