if (ports != null) {
for (int i = ports.length - 1; i >= 0; i--)
if (ports[i] != null && ports[i].intersects(this, r))
return ports[i];
if (isJumpToDefaultPort()) {
CellView cellView = getNextViewAt(null, x, y, true);
// Finds a non-edge cell under the mousepointer
if (cellView != null && graphModel.isEdge(cellView.getCell())) {
CellView nextView = getNextViewAt(cellView, x, y, true);
while (nextView != cellView
&& graphModel.isEdge(nextView.getCell())) {
nextView = getNextViewAt(nextView, x, y, true);
}
cellView = nextView;
}
if (cellView != null) {