private static bool HasAttributesArguments(AttributesDisplayKind attributesDisplayKind)
        {
            switch (attributesDisplayKind)
            {
            case AttributesDisplayKind.AllAnnotations:
            case AttributesDisplayKind.Always:
                return(true);

            default:
                return(false);
            }
        }
 public static PresenterOptions ForTypeArgumentInfo(IContextBoundSettingsStore settings, AttributesDisplayKind attributesDisplayKind)
 => new PresenterOptions
 {
     AttributesFormattingMode         = AttributesFormattingMode.AllOnCurrentLine,
     ExternalCodeNamespaceDisplayKind = ExternalCodeNamespaceDisplayKind.Always,
     FormatDelegatesAsLambdas         = false,
     ParametersFormattingMode         = ParametersFormattingMode.AllOnCurrentLine,
     ShowAccessors                  = false,
     ShowAccessRights               = false,
     ShowConstantValue              = false,
     ShowDefaultValues              = false,
     ShowElementAttributes          = AttributesDisplayKind.Never,
     ShowElementAttributesArguments = false,
     ShowElementKind                = ElementKindDisplay.None,
     ShowElementType                = ElementTypeDisplay.None,
     ShowEmptyParametersText        = false,
     ShowExplicitInterface          = false,
     ShowModifiers                  = false,
     ShowName = true,
     ShowParametersAttributes          = attributesDisplayKind,
     ShowParametersAttributesArguments = false,
     ShowParametersName               = false,
     ShowParametersType               = false,
     ShowQualifiers                   = QualifierDisplays.Member,
     ShowTypeParameters               = true,
     ShowTypeParametersVariance       = true,
     SolutionCodeNamespaceDisplayKind = SolutionCodeNamespaceDisplayKind.Always,
     UseAttributeClassKind            = false,
     UseClassModifiersInKind          = false,
     UseExtensionMethodKind           = false,
     UseMethodModifiersInKind         = false,
     UseShortNullableForm             = true,
     UseStructModifiersInKind         = false,
     UseTypeKeywords                  = settings.GetValue((ParameterInfoSettings s) => s.UseTypeKeywords)
 };