class ElementHelper {

    public static void insertBefore(final Node newNode,
                                    final Node referenceNode) {
        referenceNode.parentNode.insertBefore(newNode, referenceNode);
    }

}