void (Class<?> aClass, String testName) { if (!preimportTestMode) return; try { if (aClass.getDeclaredAnnotation(InstantImportCompatible.class) == null) { Method testMethod = aClass.getMethod(testName); Assume.assumeNotNull(testMethod.getDeclaredAnnotation(InstantImportCompatible.class)); } } catch (NoSuchMethodException ignore) { } }