Collection<PsiMethod> (@NotNull PsiClass aClass) { TestFramework testFramework = TestFrameworks.detectFramework(aClass); PsiElement setUpMethod = null; if (testFramework != null) { setUpMethod = testFramework.findSetUpMethod(aClass); if (setUpMethod == null) { setUpMethod = testFramework.findOrCreateSetUpMethod(aClass); } } return setUpMethod instanceof PsiMethod ? Collections.singletonList((PsiMethod)setUpMethod) : Collections.emptyList(); }