void (@NotNull FileChooserPanel panel, @NotNull AnActionEvent e) { Path file = getSelectedNioPath(e.getProject()); Path parent = file != null ? file.getParent() : null; if (parent != null) { panel.load(parent); } }