void (@NotNull ASTNode oldNode, @NotNull ASTNode newNode) { if (oldNode instanceof FileASTNode && newNode instanceof FileASTNode) { appendReplaceFileElement((FileASTNode)oldNode, (FileASTNode)newNode); } else { myEntries.add(new ReplaceEntry(oldNode, newNode)); } }