StructuralSearchProfile (@NotNull Language language) { final String id = language.getID(); if (cache.containsKey(id)) { return cache.get(id); } for (StructuralSearchProfile profile : getProfiles()) { if (profile.isMyLanguage(language)) { cache.put(id, profile); return profile; } } cache.put(id, null); return null; }