ClassFilter[] (@NotNull JavaCoverageEnabledConfiguration configuration, boolean include) { return Arrays.stream(ObjectUtils.chooseNotNull(configuration.getCoveragePatterns(), ClassFilter.EMPTY_ARRAY)) .filter(classFilter -> classFilter.INCLUDE == include).toArray(ClassFilter[]::new); }