void (@NotNull ASTNode child) { if (child.getElementType() == JavaElementType.JAVA_CODE_REFERENCE) { ASTNode next = PsiImplUtil.skipWhitespaceAndComments(child.getTreeNext()); if (next != null && next.getElementType() == mySeparator) { deleteChildInternal(next); } else { ASTNode prev = PsiImplUtil.skipWhitespaceAndCommentsBack(child.getTreePrev()); if (prev != null && (prev.getElementType() == mySeparator || prev.getElementType() == myKeyword)) { deleteChildInternal(prev); } } } super.deleteChildInternal(child); }