public static bool IsQualifierOpenType(IInvocationExpression invocationExpression) { var invokedReferenceExpressionQualifier = invocationExpression.GetInvokedReferenceExpressionQualifier(); var qualifierType = invokedReferenceExpressionQualifier?.Type(); return(qualifierType?.IsOpenType == true); }