if (this.variableClass == null) {
throw new IllegalStateException("couldn't find type for variable: " + set.variable);
}
if (readOnly == null) {
this.readOnly = !completions.containsFactType(this.variableClass);
//|| !mod.getModel().getBoundFacts().contains(this.variableClass);
} else {
this.readOnly = readOnly;
}