// An example of a problem this prevents:
// The ColorValueNode is encapsulates a foreign Java value java.awt.Color, and so has a foreign type.
// However, the color output editor may assume that it has a non-null editor.
if (!(vn instanceof ForeignValueNode)) {
vn = new ForeignValueNode(null, foreignTypeConsApp);
}
vn.setOutputJavaValue(null);
} else {
vn = null;