boolean (@Nullable PsiMethod method) { if (method == null) { return false; } final String methodName = method.getName(); @NonNls final String test = "test"; if (!methodName.startsWith(test) || !method.hasModifierProperty(PsiModifier.PUBLIC) && !method.getParameterList().isEmpty()) { return false; } final PsiClass containingClass = method.getContainingClass(); return isJUnitTestClass(containingClass); }