boolean (@Nullable String typeName, ClassFilter[] includeFilters, ClassFilter[] excludeFilters) { if (typeName == null) { return true; } boolean matches = false, hasEnabled = false; for (ClassFilter classFilter : includeFilters) { if (classFilter.isEnabled()) { hasEnabled = true; if (classFilter.matches(typeName)) { matches = true; break; } } } if (hasEnabled && !matches) { return false; } return !ContainerUtil.exists(excludeFilters, classFilter -> classFilter.isEnabled() && classFilter.matches(typeName)); }