In this video, we'll walk through an example of optimizing the StringBuilder function using declarative Refaster syntax. Refaster is a tool that uses normal, compilable before-and-after examples of Java code and applies the corresponding transformation across the Java codebase. OpenRewrite supports Refaster syntax for defining refactoring operations which makes authoring recipes much faster. You'll also see IntelliJ and Co-pilot used in this example.