void (@NotNull CompositeElement element, @NotNull ASTNode child) { assert child.getElementType() != JavaTokenType.COMMA : child; ASTNode next = PsiImplUtil.skipWhitespaceAndComments(child.getTreeNext()); if (next != null && next.getElementType() == JavaTokenType.COMMA) { element.deleteChildInternal(next); } else { ASTNode prev = PsiImplUtil.skipWhitespaceAndCommentsBack(child.getTreePrev()); if (prev != null && prev.getElementType() == JavaTokenType.COMMA) { element.deleteChildInternal(prev); } } }