IntPredicate (@Nullable Object input) { if (input == null) return __ -> false; if (input instanceof Integer) { final int singleId = (Integer)input; return id -> id == singleId; } return ((ChangeBufferingList)input).intPredicate(); }