@Override
  public void replaceChildInternal(@NotNull ASTNode child, @NotNull TreeElement newElement) {
    if (newElement.getElementType() == JavaElementType.IMPORT_LIST) {
      LOG.assertTrue(child.getElementType() == JavaElementType.IMPORT_LIST);
      if (newElement.getFirstChildNode() == null) { //empty import list
        ASTNode next = child.getTreeNext();
        if (next != null && next.getElementType() == TokenType.WHITE_SPACE) {
          removeChild(next);
        }
      }
    }
    super.replaceChildInternal(child, newElement);
  }
@Override
  public void replaceChildInternal(@NotNull ASTNode child, @NotNull TreeElement newElement)