added check for cascade operator with static class references