PsiMethodCallExpression (PsiElement element) { if (!(element instanceof PsiExpression)) return null; PsiMethodCallExpression getCall = extractMapMethodCall((PsiExpression)element, "get"); if (getCall == null) return null; PsiExpression[] args = getCall.getArgumentList().getExpressions(); return args.length == 1 && isKey(args[0]) && isMap(getCall.getMethodExpression().getQualifierExpression()) ? getCall : null; }