Complain when accessing private or static method