void (@NotNull PsiMethod method) { super.visitMethod(method); if (!TestUtils.isJUnitTestMethod(method)) { return; } final PsiReferenceList throwsList = method.getThrowsList(); final PsiJavaCodeReferenceElement[] referenceElements = throwsList.getReferenceElements(); if (referenceElements.length < 2) { return; } final Query<PsiReference> query = MethodReferencesSearch.search(method); final PsiReference firstReference = query.findFirst(); if (firstReference != null) { return; } registerError(throwsList); }