IOPort ioPort = (IOPort) sort[i];
// If this ioPort is an input but has no connections, ignore it.
// NOTE: In case we ever support ports that are both input
// and output, we do want to list a port if it is an output,
// regardless of whether it is also an unconnected input.
if (ioPort.isInput() && (ioPort.sourcePortList().size() == 0)) {
continue;
}
actor = (Actor) ioPort.getContainer();
if (previouslySeenActor == actor) {
if (ioPort.isOutput()) {