The Adapted Ordering Method for Lie Algebras and Superalgebras and their Generalizations