<BUG>if( pDirection.equals(Direction.EAST) || pDirection.equals(Direction.WEST)){</BUG><CONTEXT>edgesOnSelectedSide.add(edge);}}Collections.sort(edgesOnSelectedSide, (pEdge1, pEdge2) ->{<extra_id_0>return (int)(otherNode(pEdge1, pNode).getBounds().getCenterY() - otherNode(pEdge2, pNode).getBounds().getCenterY());}else</CONTEXT>
if( pSide.isEastWest() )