private static @NotNull SdkPopupBuilder preparePopup(@NotNull Project project, @NotNull VirtualFile file) {
    return SdkPopupFactory
      .newBuilder()
      .withProject(project)
      .withSdkTypeFilter(type -> type instanceof JavaSdkType)
      .updateSdkForFile(file);
  }
private static @NotNull SdkPopupBuilder preparePopup(@NotNull Project project, @NotNull VirtualFile file)