Source:
<code>private static Class<?>[] getSuiteClasses(Class<?> klass, Class<?>[] classes) throws SecurityException { final List<Class<?>> suiteClassList = new ArrayList<Class<?>>(); for (Annotation annotation : klass.getAnnotations()) { <START> if ("org.eclipse.mylyn.commons.sdk.util.ManagedSuite.TestConfigurationProperty" <END> .equals(annotation.annotationType().getCanonicalName())) { if (getTestConfiguration() == null) { TestConfigurationProperty configurationProperty = (TestConfigurationProperty) annotation; TestConfiguration testConfiguration = new TestConfiguration(configurationProperty.kind()); testConfiguration.setLocalOnly(configurationProperty.localOnly()); testConfiguration.setDefaultOnly(configurationProperty.defaultOnly()); testConfiguration.setHeadless(configurationProperty.headless()); setTestConfiguration(testConfiguration); } } else if ("org.junit.runners.Suite.SuiteClasses".equals(annotation.annotationType().getCanonicalName())) { SuiteClasses suiteClasses = (SuiteClasses) annotation; for (Class<?> suiteClass : suiteClasses.value()) { suiteClassList.add(suiteClass); } } } if (getTestConfiguration() == null) { setTestConfiguration(TestConfiguration.getDefault()); } try { Method method = klass.getMethod("add2SuiteClasses", java.util.List.class, org.eclipse.mylyn.commons.sdk.util.TestConfiguration.class); if (method != null) { TestConfiguration conf = getTestConfiguration(); method.invoke(null, suiteClassList, conf); } } catch (InvocationTargetException | NoSuchMethodException | IllegalAccessException | IllegalArgumentException e) { } return suiteClassList.toArray(new Class<?>[suiteClassList.size()]); }</code><technical_language>reference class directly</technical_language>

Target:
private static Class<?>[] getSuiteClasses(Class<?> klass, Class<?>[] classes) throws SecurityException { final List<Class<?>> suiteClassList = new ArrayList<Class<?>>(); for (Annotation annotation : klass.getAnnotations()) { if (annotation.annotationType() == TestConfigurationProperty.class) { if (getTestConfiguration() == null) { TestConfigurationProperty configurationProperty = (TestConfigurationProperty) annotation; TestConfiguration testConfiguration = new TestConfiguration(configurationProperty.kind()); testConfiguration.setLocalOnly(configurationProperty.localOnly()); testConfiguration.setDefaultOnly(configurationProperty.defaultOnly()); testConfiguration.setHeadless(configurationProperty.headless()); setTestConfiguration(testConfiguration); } } else if (annotation.annotationType() == SuiteClasses.class) { SuiteClasses suiteClasses = (SuiteClasses) annotation; for (Class<?> suiteClass : suiteClasses.value()) { suiteClassList.add(suiteClass); } } } if (getTestConfiguration() == null) { setTestConfiguration(TestConfiguration.getDefault()); } try { Method method = klass.getMethod("add2SuiteClasses", java.util.List.class, org.eclipse.mylyn.commons.sdk.util.TestConfiguration.class); if (method != null) { TestConfiguration conf = getTestConfiguration(); method.invoke(null, suiteClassList, conf); } } catch (InvocationTargetException | NoSuchMethodException | IllegalAccessException | IllegalArgumentException e) { } return suiteClassList.toArray(new Class<?>[suiteClassList.size()]); }