made insideNotPredicate thread safe