find unused code by collecting methods defined but not called or referenced