InMemoryVariantWhiteList implements VariantWhiteList { public static VariantWhiteList of(Set<AlleleProto.AlleleKey> whiteList) { Objects.requireNonNull(whiteList); if (whiteList.isEmpty()) { return EMPTY; } return new InMemoryVariantWhiteList(whiteList); } private  InMemoryVariantWhiteList(Set<AlleleProto.AlleleKey> whiteList); static VariantWhiteList empty(); static VariantWhiteList of(Set<AlleleProto.AlleleKey> whiteList); @Override boolean contains(Variant variant); @Override String toString();  }
@Test void wontAcceptNull() { assertThrows(NullPointerException.class, () -> InMemoryVariantWhiteList.of(null)); }