public void addForeignKey(ForeignKey foreignKey){
  if (foreignKey != null) {
    foreignKeys.add(foreignKey);
  }
}

public void addForeignKey ( ForeignKey foreignKey ) { if ( foreignKey != null ) { foreignKeys . add ( foreignKey ) ; } }
adds the given foreign key .
