private static bool ElementHasNullabilityDefinition([NotNull] XElement element)
{
string attributeName = element.Attribute("ctor")?.Value;
return attributeName == "M:JetBrains.Annotations.NotNullAttribute.#ctor" ||
attributeName == "M:JetBrains.Annotations.CanBeNullAttribute.#ctor";
}