LayoutAttractionPolicy (@Nullable String contentId, @Nullable String condition, @NotNull Map<Pair<String, String>, LayoutAttractionPolicy> map, LayoutAttractionPolicy defaultPolicy) { LayoutAttractionPolicy policy = map.putIfAbsent(Pair.create(contentId, condition), defaultPolicy); return policy != null ? policy : defaultPolicy; }