Add warning for deprecated method keyword