schema tree REFACTOR dep sets creation

Some idioms should now be always satisfied
such as no module is in 2 dep sets. Also,
dep sets are not broken at a module that
does not have statements for compilation
or recompilation because there still can
be at least groupings that actually may
extend the dep set with its imports.
diff --git a/src/tree_schema_internal.h b/src/tree_schema_internal.h
index db276a0..4f82ec5 100644
--- a/src/tree_schema_internal.h
+++ b/src/tree_schema_internal.h
@@ -876,4 +876,12 @@
  */
 ly_bool lys_has_compiled(const struct lys_module *mod);
 
+/**
+ * @brief Learn whether the module has any grouping statements or not.
+ *
+ * @param[in] mod Module to examine.
+ * @return Whether it has groupings or not.
+ */
+ly_bool lys_has_groupings(const struct lys_module *mod);
+
 #endif /* LY_TREE_SCHEMA_INTERNAL_H_ */