Mark a method 'const' and another 'static'.