Function useMethodAttributes