Use a String instead of a regexp literal for METHOD_DECLARATION_REGEXP