Environment:
- Java: JetBrains s.r.o. 17.0.6
- OS: Windows 10 amd64
- IDE: IntelliJ IDEA 2023.1
- SonarLint: 8.1.0.65508
java.lang.StringIndexOutOfBoundsException: begin 1373, end 1408, length 21
at java.base/java.lang.String.checkBoundsBeginEnd(String.java:4602)
at java.base/java.lang.String.substring(String.java:2705)
at java.base/java.lang.String.subSequence(String.java:2743)
at c.ij.psi.impl.source.tree.injected.DocumentWindowImpl.prepareReplaceString(DocumentWindowImpl.java:300)
at c.ij.psi.impl.source.tree.injected.DocumentWindowImpl.replaceString(DocumentWindowImpl.java:349)
at o.sl.ij.editor.ApplyQuickFixIntentionAction.invoke(ApplyQuickFixIntentionAction.kt:52)
at c.ij.codeInsight.intention.impl.ShowIntentionActionsHandler.lambda$invokeIntention$8(ShowIntentionActionsHandler.java:273)
at c.ij.oa.application.WriteAction.lambda$run$1(WriteAction.java:87)
at c.ij.oa.application.impl.ApplicationImpl.runWriteActionWithClass(ApplicationImpl.java:946)
at c.ij.oa.application.impl.ApplicationImpl.runWriteAction(ApplicationImpl.java:972)
at c.ij.oa.application.WriteAction.run(WriteAction.java:86)
at c.ij.codeInsight.intention.impl.ShowIntentionActionsHandler.invokeIntention(ShowIntentionActionsHandler.java:273)
at c.ij.codeInsight.intention.impl.ShowIntentionActionsHandler.lambda$chooseActionAndInvoke$7(ShowIntentionActionsHandler.java:250)
at c.ij.oa.command.impl.CoreCommandProcessor.executeCommand(CoreCommandProcessor.java:219)
at c.ij.oa.command.impl.CoreCommandProcessor.executeCommand(CoreCommandProcessor.java:174)
at c.ij.oa.command.impl.CoreCommandProcessor.executeCommand(CoreCommandProcessor.java:164)