PsiMethod (@NotNull PsiClass clazz) { if (!isTestClass(clazz, false)) return null; for (PsiMethod method : clazz.getMethods()) { if (method.getName().equals("tearDown")) return method; } return null; }