private static IList <string> GetBackgroundSteps(string[] arrLine, Feature feature) { var background = GetBackground(feature); if (background == null) { return(new List <string>()); } var firstScenario = feature.Children.FirstOrDefault(scenarioDefinition => !(scenarioDefinition is Background)); var backgroundFirstStepLocation = background.Steps.First()?.Location; return(VersionUtils.GetLinesList( arrLine, backgroundFirstStepLocation, GherkinUtils.GetFirstTagLocation(firstScenario))); }