boolean (@NotNull Attribute attribute) { final String parentName = attribute.getParent().getName(); if ("replaceConfiguration".equals(parentName) || "searchConfiguration".equals(parentName)) { return true; } return false; }