boolean (@NotNull PsiExpression expression, @NotNull @NonNls String expectedName) { PsiMethodCallExpression call = ObjectUtils.tryCast(expression, PsiMethodCallExpression.class); if (call == null) return false; String name = call.getMethodExpression().getReferenceName(); return expectedName.equals(name) && isParamCall(call); }