KotlinUtil { static boolean isSuspendingFunction(Method method) { try { return IS_KOTLIN_REFLECTION_PRESENT && IS_SUSPENDING_FUNCTION != null && isKotlinMethod(method) && (boolean) IS_SUSPENDING_FUNCTION.invoke(null, method); } catch (Exception e) { return false; } } private  KotlinUtil();   }
@Test void isSuspendingFunction() throws NoSuchMethodException { final Method testMethod = DummyService.class.getDeclaredMethod("testMethod"); assertThat(KotlinUtil.isSuspendingFunction(testMethod)).isFalse(); }