boolean (JavaResolveResult oldResult, JavaResolveResult newResult) { PsiMethod oldMethod = (PsiMethod)oldResult.getElement(); LOG.assertTrue(oldMethod != null); return oldMethod.equals(newResult.getElement()) && newResult.isValidResult() && !(newResult instanceof MethodCandidateInfo && ((MethodCandidateInfo)newResult).getInferenceErrorMessage() != null) && new RecaptureTypeMapper().recapture(newResult.getSubstitutor()).equals(oldResult.getSubstitutor()); }