void (@NotNull AnActionEvent e) { FileChooserPanel panel; FileSystemTree tree; if ((panel = e.getData(FileChooserPanel.DATA_KEY)) != null) { actionPerformed(panel, e); } else if ((tree = e.getData(FileSystemTree.DATA_KEY)) != null) { actionPerformed(tree, e); } }