I have generic class `TableView<>` where i need to set type, which is not known in advance and is resolved based on some condition.

See code:

```
Class clazz = null;
switch($something)
{
    case $case1: clazz = $someClass1;
    case $case2: clazz = $someClass2;
    ...
}
TableView<clazz> = new TableView<clazz>(); //<- compilation problem here: "clazz cannot be resolved to a type"

```