private static boolean isSpaceBeforeEmptyElement(ASTNode node) {
    if (node.getElementType().isLeftBound()) {
      final ASTNode parent = node.getTreeParent();
      return parent != null && parent.getFirstChildNode() == node;
    }
    return true;
  }
private static boolean isSpaceBeforeEmptyElement(ASTNode node)