class DefaultLabelFilter
            implements LabelFilter {
        final String[] includes;
        final String[] excludes;

        public DefaultLabelFilter(String[] includes, String[] excludes) {
            if (includes != null) {
                this.includes = new String[includes.length];
                System.arraycopy(includes, 0, this.includes, 0, includes.length);
                Arrays.sort(this.includes);
            } else {
                this.includes = null;
            }

            if (excludes != null) {
                this.excludes = new String[excludes.length];
                System.arraycopy(excludes, 0, this.excludes, 0, excludes.length);
                Arrays.sort(this.excludes);
            } else {
                this.excludes = null;
            }
        }

        @Override
        public boolean apply(String label) {<FILL_FUNCTION_BODY>}
    }

            if (excludes != null) {
                return Arrays.binarySearch(excludes, label) < 0;
            }

            return includes != null && Arrays.binarySearch(includes, label) >= 0;
        
<no_super_class>