Validate declaration of methods