[JBIDE-18301] correctly detect sub-projects and warn user