This inspection reports any instances of .wait() being called while the current thread is holding two locks. Since the call to .wait() only frees locks on the its target, waiting with two locks held can easily lead to deadlock.