boolean (@NotNull RefEntity entity) { CommonProblemDescriptor[] excluded = myExcludedElements.get(entity); CommonProblemDescriptor[] problems = myProblemElements.get(entity); return excluded != null && problems != null && Comparing.equal(ContainerUtil.newHashSet(excluded), ContainerUtil.newHashSet(problems)); }