Environment
- Operating System: Mac
- JDK version: 17.0.6
- Visual Studio Code version: 1.75.1
- Java extension version: 1.15.0
Steps To Reproduce
- Open a java project, like https://github.com/redhat-developer/vscode-java/tree/master/test/resources/projects/eclipse/simple-app
- Type the code
File f = new File("demo.txt"); in a main method > Code Actions > Select Create class xxx, or Create interface xxx, or Create enum xxx

Current Result
Show the code repeatedly in the new java file.
Expected Result
Only show the code one time
Environment
Steps To Reproduce
File f = new File("demo.txt");in a main method > Code Actions > SelectCreate class xxx, orCreate interface xxx, orCreate enum xxxCurrent Result
Show the code repeatedly in the new java file.
Expected Result
Only show the code one time