SONAR-4499 Replace "method" by "function"