Static access exceptions

Resolves https://github.com/phpmd/phpmd/issues/145