boolean (@NotNull PsiElement element, @NotNull Map<? super PsiElement, Collection<String>> suppressedScopes, boolean ignoreAll, @NotNull RedundantSuppressionDetector suppressor) { String idsString = suppressor.getSuppressionIds(element); if (idsString != null && !idsString.isEmpty()) { List<String> ids = new ArrayList<>(); StringUtil.tokenize(idsString, "[, ]").forEach(ids::add); boolean isSuppressAll = ContainerUtil.exists(ids, id -> id.equalsIgnoreCase(SuppressionUtil.ALL)); if (ignoreAll && isSuppressAll) { return false; } Collection<String> suppressed = suppressedScopes.get(element); if (suppressed == null) { suppressed = ids; } else { for (String id : ids) { if (!suppressed.contains(id)) { suppressed.add(id); } } } suppressedScopes.put(element, suppressed); return isSuppressAll; } return false; }