Get the root class in case of generics
static String getClassName(Type type) => type.toString().split("<")[0];