package io.generators.core;

import com.google.common.base.Predicate;
import com.google.common.base.Predicates;
import com.google.common.collect.ImmutableList;

import java.util.Collection;

/**
 * Utility class with convenience methods for creation of predicates
 */
public final class MorePredicates {

    private MorePredicates() {
    }


    public static <T> Predicate<T> in(T first, T... rest) {
        Collection<T> allowed = ImmutableList.<T>builder()
                .add(first)
                .add(rest)
                .build();

        return Predicates.in(allowed);
    }

    public static <T> Predicate<T> notIn(T first, T... rest) {
        return Predicates.not(in(first, rest));
    }
}

@@ -336,16 +336,32 @@
 %0A    %7D%0A%0A
+    @SafeVarargs
 %0A    pub
@@ -596,24 +596,41 @@
 ed);%0A    %7D%0A%0A
+    @SafeVarargs%0A
     public s

Fix compiler warnings