Czar
07/04/2017, 8:53 AMfun dummy(input: List<Any>): Stream<SomeSpecificType> =
         input.parallelStream().map {
             when {
                 it is String -> SomeSpecificType(it)
                 else -> {
                    performActionWhichReturnsBoolean(it)
                    null
                 }
             }
         }.filter(Objects::nonNull)