static fun <T : StateObservable<Enum<*>!>!> replaceStateClass(from: Class<T>!, to: Class<out T>!): Unit