optional

inline fun <C : Service> optional(): C?
fun <C : Service> optional(serviceClass: KClass<C>): C?