private static bool HasUnsupportedPrefixes(ConstraintExpressionPart constraintPart) { // Disable analyzer if part has constraint prefixes other than property operators or Not operator, // as they might change validated type and lead to false positives (e.g. All/Some operators). return(constraintPart.GetPrefixesNames().Any(prefix => !implicitPropertyConstraints.Contains(prefix) && prefix != NUnitFrameworkConstants.NameOfHasProperty && prefix != NUnitFrameworkConstants.NameOfIsNot)); }