void (Editor editor, PsiFile psiFile) { Content content = myToolWindow.getContentManager().getSelectedContent(); if (content == null) { return; } ByteCodeViewerComponent component = (ByteCodeViewerComponent)content.getComponent(); PsiElement element = psiFile.findElementAt(editor.getCaretModel().getOffset()); if (element != null) { updateByteCode(element, component, content); } }