handle generics for static class named-idents