if (first instanceof VisualChannelPlace) {
            for (MathNode node : getMathModel().getPreset(((VisualChannelPlace) first).getReferencedComponent())) {
                if (getMathModel().isInSameGroup(((VisualComponent) second).getReferencedComponent(), node)) {
                    throw new InvalidConnectionException("The input and ouput nodes for a channel place belong to same group are not valid");
                }