void (@NotNull AnActionEvent e, @NotNull Notification notification) { SdkPopupFactory .newBuilder() .withProject(project) .withSdkTypeFilter(type -> type instanceof JavaSdkType) .updateProjectSdkFromSelection() .onPopupClosed(() -> notification.hideBalloon()) .buildPopup() .showPopup(e); }