HHH-8233 also set detectClassesInNonRoot