checks for static/instance access + visibility