void (@NotNull Project project, Editor editor, final PsiFile file) { SdkPopupFactory .newBuilder() .withProject(project) .withSdkTypeFilter(type -> type instanceof JavaSdkType) .updateSdkForFile(file) .buildPopup() .showInBestPositionFor(editor); }