Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(java): refactor code to use runReadAction and replace string ope…
…ration The code has been refactored to use `runReadAction` for better performance when working with PSI elements. The string replacement operation has been changed to ensure that the new code is inserted at the beginning of the document instead of after the last class, which was the previous behavior. This commit also includes the import statements for `PsiElementFactory` and `PsiJavaFile` within the `runReadAction` block to ensure that they are executed during the read action.
- Loading branch information