public static bool ShouldProceedWithChecks(SyntaxList <SwitchSectionSyntax> caseSyntaxes)
        {
            if (PatternMatchingHelper.HasVarDeclaration(caseSyntaxes))
            {
                return(false);
            }

            return(DefaultCaseCheck.ShouldProceedWithDefault(caseSyntaxes));
        }
        public static bool ShouldProceedWithChecks(SyntaxList <SwitchSectionSyntax> caseSyntaxes, string expressionTypeName)
        {
            if (PatternMatchingHelper.HasVarDeclaration(caseSyntaxes))
            {
                return(false);
            }

            if (expressionTypeName == "Object")
            {
                // todo: maybe show warning or info message in this case?
                return(false);
            }

            if (HasSameClassDeclaration(caseSyntaxes, expressionTypeName))
            {
                return(false);
            }

            return(DefaultCaseCheck.ShouldProceedWithDefault(caseSyntaxes));
        }