void (@NotNull FileSystemTree fileSystemTree, @NotNull AnActionEvent e) { Project project = e.getProject(); VirtualFile file = getSelectedFile(fileSystemTree, project); if (project != null && file != null) { fileSystemTree.select(file, () -> fileSystemTree.expand(file, null)); } }