boolean () { List<Validator> selectedElements = myValidators.getMarkedElements(); List<Validator> markedValidators = getMarkedValidators(ContainerUtil.concat(selectedElements, myValidators.getElements(false))); if (markedValidators.size() != selectedElements.size()) { return true; } Set<Validator> set = CollectionFactory.createCustomHashingStrategySet(new HashingStrategy<>() { @Override public int hashCode(Validator object) { return object==null?0:object.getId().hashCode(); } @Override public boolean equals(Validator o1, Validator o2) { return (o1==null?"":o1.getId()).equals(o2==null?"":o2.getId()); } }); set.addAll(selectedElements); return myConfiguration.isValidateOnBuild() != myValidateBox.isSelected() || set.retainAll(markedValidators) || myExcludedConfigurable.isModified(); }