code: public static boolean canAcceptChild(Class<? extends ElementBase> parentClass, Class<? extends ElementBase> childClass) {
          return allowedChildClasses.isRelated(parentClass, childClass);
      }
docs: Returns true if childClass can be a child of the parentClass.
  
  @param parentClass Parent class
  @param childClass Child class
  @return True if childClass can be a child of the parentClass.