void (@NotNull AnActionEvent e, boolean state) { myShowExisting = state; final ItemWrapper selectedItem = myView.getSelectedItem(); PsiDirectory directory = selectedItem != null ? selectedItem.getDirectory() : null; if (directory == null && myDefaultSelection != null) { directory = myDefaultSelection; } updateView(directory, -1); }