Fewer lines with the following I guess (Philipp removed Batchable which was a case below):

    runnable.isInstanceOf[OnCompleteRunnable]