boolean (PsiElement element) { if (isPartOfJUnitTestMethod(element)) { return true; } final PsiClass containingClass = PsiTreeUtil.getParentOfType(element, PsiClass.class); if (containingClass != null && TestFrameworks.getInstance().isTestOrConfig(containingClass)) { return true; } return isInTestSourceContent(element); }