boolean (@NotNull PsiClass psiClass) { for (final PsiMethod method : psiClass.getAllMethods()) { if (isSuiteMethod(method)) return true; if (isExplicitlyTestAnnotated(method)) { return true; } } PsiClass[] classes = psiClass.getInnerClasses(); if (classes.length > 0 && isJUnit5(psiClass)) { for (PsiClass innerClass : classes) { for (PsiMethod method : innerClass.getAllMethods()) { if (isExplicitlyTestAnnotated(method)) { return true; } } } } return false; }