nhaarman
inline fun <T, reified R : T> Collection<T>.filterInstanceOf() = filter { it is R }.map { it as R }