g.setPaint(picked ? FILL_COLOR_PICKED : FILL_COLOR);
g.fill(shape);
g.setPaint(LINE_COLOR);
g.draw(shape);
drawLine(g, linediff*(1 + mod.getInputPipeTypes().size()) + PADDING*2);
int y = linediff;
g.setFont(title_font);
drawString(g, mod.getTitle(), y);