check duplicate class properties and methods