Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
I want to find anonymous classes in some code to see if they should be changed to lambdas for readability's sake. Is there any tool which does this?
The IntelliJ IDE by JetBrains offers such a feature.
Choose Edit > Find > Search Structurally… > ⚙ (Gear icon menu) > Existing Templates… > Java > Class-based > anonymous classes
See this Answer on Stack Overflow.
Required, but never shown