Support recursive static classes