public void hilightScript(ScriptPack pack) {
   TagTreeModel ttm = (TagTreeModel) mainPanel.tagTree.getModel();
   final TreePath tp = ttm.getTreePath(pack);
   View.execInEventDispatchLater(
       () -> {
         mainPanel.tagTree.setSelectionPath(tp);
         mainPanel.tagTree.scrollPathToVisible(tp);
       });
 }
  @Override
  public void updateSearchPos(ABCPanelSearchResult item) {
    ScriptPack pack = item.scriptPack;
    setAbc(pack.abc);
    decompiledTextArea.setScript(pack);
    hilightScript(pack);
    decompiledTextArea.setCaretPosition(0);

    View.execInEventDispatchLater(
        () -> {
          searchPanel.showQuickFindDialog(decompiledTextArea);
        });
  }