+// am2901 = IndirectGUIComponentCreator.createComponent(viewModel, "GUIAm2901");\r
+ // guess which pins are outputs and which are inputs\r
+ // TODO this code exists three times... but it seems too "hacky" to put it in a helper class\r
+ List<String> inputPinNames = new ArrayList<>();\r
+ List<String> outputPinNames = new ArrayList<>();\r
+ for (Pin p : am2901.getPins().values())\r
+ if (p.getRelX() == 0)\r
+ inputPinNames.add(p.name);\r
+ else\r
+ outputPinNames.add(p.name);\r