public static bool IsOfTypeInvoked(string methodBody, string argumentName)
{
Argument.IsNotNullOrWhitespace(() => argumentName);
return Regex.IsMatch(methodBody, string.Format(ArgumentCheckStatementDetectionPatterns.IsOfType, argumentName), RegexOptions.IgnorePatternWhitespace) || Regex.IsMatch(methodBody, string.Format(ArgumentCheckStatementDetectionPatterns.IsOfType2, argumentName), RegexOptions.IgnorePatternWhitespace);
}