private boolean concernRegionContainer() {
   boolean regionImpacted = false;
   EditPart hostPart = getHost();
   if (hostPart instanceof AbstractDiagramElementContainerEditPart) {
     IDiagramElementEditPart ideep = (IDiagramElementEditPart) hostPart;
     DDiagramElement dde = ideep.resolveDiagramElement();
     regionImpacted =
         dde instanceof DNodeContainer
             && new DNodeContainerExperimentalQuery((DNodeContainer) dde).isRegionContainer();
   }
   return regionImpacted;
 }
 private int getStackDirection() {
   int direction = PositionConstants.NONE;
   EditPart hostPart = getHost();
   if (hostPart instanceof AbstractDiagramElementContainerEditPart) {
     IDiagramElementEditPart ideep = (IDiagramElementEditPart) hostPart;
     DDiagramElement dde = ideep.resolveDiagramElement();
     if (dde instanceof DNodeContainer) {
       DNodeContainerExperimentalQuery query =
           new DNodeContainerExperimentalQuery((DNodeContainer) dde);
       if (query.isVerticalStackContainer()) {
         direction = PositionConstants.NORTH_SOUTH;
       } else if (query.isHorizontaltackContainer()) {
         direction = PositionConstants.EAST_WEST;
       }
     }
   }
   return direction;
 }