private ImplicitNullabilityConfiguration CalculateConfiguration(IPsiModule psiModule)
        {
            var implicitNullabilitySettings = GetSettings(psiModule);

            if (!implicitNullabilitySettings.Enabled)
            {
                return(ImplicitNullabilityConfiguration.AllDisabled);
            }

            var configurationFromAssemblyAttribute = ParseConfigurationFromAssemblyAttribute(psiModule);

            if (configurationFromAssemblyAttribute.HasValue)
            {
                return(configurationFromAssemblyAttribute.Value);
            }

            if (!psiModule.IsPartOfSolutionCode())
            {
                return(ImplicitNullabilityConfiguration.AllDisabled);
            }

            return(ImplicitNullabilityConfiguration.CreateFromSettings(implicitNullabilitySettings));
        }