*/
public class GherkinMisplacedBackgroundInspection extends GherkinInspection {
@NotNull
@Override
public PsiElementVisitor buildVisitor(@NotNull final ProblemsHolder holder, boolean isOnTheFly) {
return new GherkinElementVisitor() {
@Override
public void visitScenario(GherkinScenario scenario) {
if (scenario.isBackground()) {
PsiElement element = scenario.getPrevSibling();