void (@NotNull ASTNode child) { if (child.getElementType() == JavaElementType.MODULE_REFERENCE) { ASTNode comma = findNearestComma(child); if (comma != null) { super.deleteChildInternal(comma); } else { ASTNode toKeyword = findChildByType(JavaTokenType.TO_KEYWORD); if (toKeyword != null) { super.deleteChildInternal(toKeyword); } } } super.deleteChildInternal(child); }