private void addDiagramEntity(DBRProgressMonitor monitor, DBSEntity table) {
   if (diagram.containsTable(table)) {
     // Avoid duplicates
     return;
   }
   ERDEntity erdEntity = ERDEntity.fromObject(monitor, diagram, table);
   if (erdEntity != null) {
     erdEntities.add(erdEntity);
     tableMap.put(table, erdEntity);
   }
 }
 public DiagramObjectCollector(EntityDiagram diagram) {
   this.diagram = diagram;
   this.tableMap.putAll(diagram.getTableMap());
 }