@Override
    public void check(Model model) {
        if (model == null)
            return;

        List<Model> secondPhaseModels = new ArrayList<>();
        deepFindAllModelsOfType(AppenderModel.class, secondPhaseModels, model);
        deepFindAllModelsOfType(LoggerModel.class, secondPhaseModels, model);
        deepFindAllModelsOfType(RootLoggerModel.class, secondPhaseModels, model);

        List<Pair<Model, Model>> nestedPairs = deepFindNestedSubModelsOfType(IfModel.class, secondPhaseModels);

        if (nestedPairs.isEmpty())
            return;

        addWarn("<if> elements cannot be nested within an <appender>, <logger> or <root> element");
        addWarn("See also " + NESTED_IF_WARNING_URL);
        for (Pair<Model, Model> pair : nestedPairs) {
            Model p = pair.first;
            int pLine = p.getLineNumber();
            Model s = pair.second;
            int sLine = s.getLineNumber();
            addWarn("Element <"+p.getTag()+"> at line " + pLine + " contains a nested <"+s.getTag()+"> element at line " +sLine);
        }
    }
@Test
    public void smoke() {

        ClassicTopModel topModel = new ClassicTopModel();
        inwspeChecker.check(topModel);
        statusChecker.assertIsWarningOrErrorFree();
    }