import com.google.common.annotations.Beta;
import com.google.common.collect.Iterators;
+import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
import java.io.Serializable;
import java.util.Collection;
import java.util.Iterator;
return s.size() == 1 && otherContains(s);
}
+ @SuppressFBWarnings(value = "DCN_NULLPOINTER_EXCEPTION",
+ justification = "https://github.com/spotbugs/spotbugs/issues/1954")
private boolean otherContains(final @NonNull Collection<?> other) {
try {
return other.contains(getElement());