boolean (@NotNull Collection<? extends Predicate<? super TextAttributesKey>> filters, TextAttributesKey key) { for (Predicate<? super TextAttributesKey> filter : filters) { if (filter.test(key)) return true; } return false; }