void () { configureByFile(BASE_PATH + "/MethodApplicability.java"); PsiFile file = getFile(); Editor editor = getEditor(); PsiElement element = file.findElementAt(editor.getCaretModel().getOffset()); PsiMethodCallExpression expression = PsiTreeUtil.getParentOfType(element, PsiMethodCallExpression.class); for (JavaResolveResult result : expression.getMethodExpression().multiResolve(true)) { assertFalse(result.isValidResult()); } }