avoid wrong trait detection if source code used a class property named trait