find compatible declarations