javax.swing.text.BadLocationException: Invalid offset=517, docLen=475 at org.netbeans.modules.editor.lib2.view.EditorView.checkBounds(EditorView.java:509) at org.netbeans.modules.editor.lib2.view.EditorView.modelToView(EditorView.java:246) at javax.swing.plaf.basic.BasicTextUI$RootView.modelToView(BasicTextUI.java:1509) at javax.swing.plaf.basic.BasicTextUI.modelToView(BasicTextUI.java:1047) at javax.swing.plaf.basic.BasicTextUI.modelToView(BasicTextUI.java:1022) at javax.swing.text.JTextComponent.modelToView(JTextComponent.java:1377) at org.netbeans.modules.java.hints.introduce.IntroduceHint$2.run(IntroduceHint.java:960) at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311) at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:756) at java.awt.EventQueue.access$500(EventQueue.java:97) at java.awt.EventQueue$3.run(EventQueue.java:709) at java.awt.EventQueue$3.run(EventQueue.java:703) at java.security.AccessController.doPrivileged(AccessController.java:0) at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:76) at java.awt.EventQueue.dispatchEvent(EventQueue.java:726) at org.netbeans.core.TimableEventQueue.dispatchEvent(TimableEventQueue.java:159) at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201) at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116) at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:109) at java.awt.WaitDispatchSupport$2.run(WaitDispatchSupport.java:184) at java.awt.WaitDispatchSupport$4.run(WaitDispatchSupport.java:229) at java.awt.WaitDispatchSupport$4.run(WaitDispatchSupport.java:227) at java.security.AccessController.doPrivileged(AccessController.java:0) at java.awt.WaitDispatchSupport.enter(WaitDispatchSupport.java:227) at java.awt.Dialog.show(Dialog.java:1084) at org.netbeans.core.windows.services.NbPresenter.superShow(NbPresenter.java:1065) at org.netbeans.core.windows.services.NbPresenter.doShow(NbPresenter.java:1115) at org.netbeans.core.windows.services.NbPresenter.run(NbPresenter.java:1087) at org.netbeans.core.windows.services.NbPresenter.run(NbPresenter.java:128) at org.netbeans.modules.openide.util.NbMutexEventProvider$Event.doEventAccess(NbMutexEventProvider.java:138) at org.netbeans.modules.openide.util.NbMutexEventProvider$Event.readAccess(NbMutexEventProvider.java:98) at org.netbeans.modules.openide.util.LazyMutexImplementation.readAccess(LazyMutexImplementation.java:94) at org.openide.util.Mutex.readAccess(Mutex.java:218) at org.netbeans.core.windows.services.NbPresenter.show(NbPresenter.java:1072) at java.awt.Component.show(Component.java:1673) at java.awt.Component.setVisible(Component.java:1625) at java.awt.Window.setVisible(Window.java:1014) at java.awt.Dialog.setVisible(Dialog.java:1005) at org.netbeans.core.windows.services.DialogDisplayerImpl$1AWTQuery.showDialog(DialogDisplayerImpl.java:266) at org.netbeans.core.windows.services.DialogDisplayerImpl.notify(DialogDisplayerImpl.java:282) at org.netbeans.core.windows.services.DialogDisplayerImpl.notify(DialogDisplayerImpl.java:173) at org.netbeans.modules.java.hints.introduce.IntroduceHint.shouldReplaceDuplicate(IntroduceHint.java:980) at org.netbeans.modules.java.hints.introduce.IntroduceExpressionBasedMethodFix$1.run(IntroduceExpressionBasedMethodFix.java:265) at org.netbeans.modules.java.hints.introduce.IntroduceExpressionBasedMethodFix$1.run(IntroduceExpressionBasedMethodFix.java:210) at org.netbeans.api.java.source.JavaSource$1.run(JavaSource.java:636) at org.netbeans.api.java.source.JavaSource$1.run(JavaSource.java:626) at org.netbeans.api.java.source.JavaSource$MultiTask.run(JavaSource.java:480) at org.netbeans.modules.parsing.impl.TaskProcessor.callUserTask(TaskProcessor.java:609) at org.netbeans.modules.parsing.api.ParserManager$UserTaskAction.run(ParserManager.java:153) at org.netbeans.modules.parsing.api.ParserManager$UserTaskAction.run(ParserManager.java:137) at org.netbeans.modules.parsing.impl.TaskProcessor$2.call(TaskProcessor.java:204) at org.netbeans.modules.parsing.impl.TaskProcessor$2.call(TaskProcessor.java:201) at org.netbeans.modules.masterfs.filebasedfs.utils.FileChangedManager.priorityIO(FileChangedManager.java:176) at org.netbeans.modules.masterfs.providers.ProvidedExtensions.priorityIO(ProvidedExtensions.java:360) at org.netbeans.modules.parsing.nb.DataObjectEnvFactory.runPriorityIO(DataObjectEnvFactory.java:141) at org.netbeans.modules.parsing.impl.Utilities.runPriorityIO(Utilities.java:88) at org.netbeans.modules.parsing.impl.TaskProcessor.runUserTask(TaskProcessor.java:201) at org.netbeans.modules.parsing.api.ParserManager.parse(ParserManager.java:104) at org.netbeans.api.java.source.JavaSource.runUserActionTaskImpl(JavaSource.java:430) at org.netbeans.api.java.source.JavaSource.runUserActionTask(JavaSource.java:401) at org.netbeans.api.java.source.JavaSource.runModificationTask(JavaSource.java:647) at org.netbeans.modules.java.hints.introduce.IntroduceExpressionBasedMethodFix.implement(IntroduceExpressionBasedMethodFix.java:210) at org.netbeans.modules.java.hints.introduce.IntroduceAction.doPerformAction(IntroduceAction.java:225) at org.netbeans.modules.java.hints.introduce.IntroduceAction.perform(IntroduceAction.java:114) at org.netbeans.modules.java.hints.infrastructure.HintAction.doPerform(HintAction.java:111) at org.netbeans.modules.java.hints.infrastructure.HintAction.actionPerformed(HintAction.java:84) at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2022) at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2348) at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:402) at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:259) at javax.swing.AbstractButton.doClick(AbstractButton.java:376) at javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:833) at com.apple.laf.AquaMenuItemUI.doClick(AquaMenuItemUI.java:157) at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(BasicMenuItemUI.java:877) at java.awt.Component.processMouseEvent(Component.java:6535) at javax.swing.JComponent.processMouseEvent(JComponent.java:3324) at java.awt.Component.processEvent(Component.java:6300) at java.awt.Container.processEvent(Container.java:2236) at java.awt.Component.dispatchEventImpl(Component.java:4891) at java.awt.Container.dispatchEventImpl(Container.java:2294) at java.awt.Component.dispatchEvent(Component.java:4713) at java.awt.LightweightDispatcher.retargetMouseEvent(LightweightDispatcher.java:4888) at java.awt.LightweightDispatcher.processMouseEvent(LightweightDispatcher.java:4525) at java.awt.LightweightDispatcher.dispatchEvent(LightweightDispatcher.java:4466) at java.awt.Container.dispatchEventImpl(Container.java:2280) at java.awt.Window.dispatchEventImpl(Window.java:2750) at java.awt.Component.dispatchEvent(Component.java:4713) at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:758) at java.awt.EventQueue.access$500(EventQueue.java:97) at java.awt.EventQueue$3.run(EventQueue.java:709) at java.awt.EventQueue$3.run(EventQueue.java:703) at java.security.AccessController.doPrivileged(AccessController.java:0) at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:76) at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:86) at java.awt.EventQueue$4.run(EventQueue.java:731) at java.awt.EventQueue$4.run(EventQueue.java:729) at java.security.AccessController.doPrivileged(AccessController.java:0) at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:76) at java.awt.EventQueue.dispatchEvent(EventQueue.java:728) at org.netbeans.core.TimableEventQueue.dispatchEvent(TimableEventQueue.java:159) at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201) at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116) at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93) at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)