void (JavaResolveResult result, @NonNls String name) { PsiMethod method = (PsiMethod)result.getElement(); assertNotNull(method); assertTrue(result.isValidResult()); assertEquals(name, method.getContainingClass().getName()); }