void () { configure(); PsiMethodCallExpression innerCall = PsiTreeUtil.getParentOfType(getFile().findElementAt(getEditor().getCaretModel().getOffset()), PsiMethodCallExpression.class); PsiMethodCallExpression outerCall = (PsiMethodCallExpression) innerCall.getParent().getParent(); assertAmbiguous(outerCall); assertAmbiguous(innerCall); dropCaches(); assertAmbiguous(innerCall); assertAmbiguous(outerCall); }