Added methodHasAttribute from cecil