private void updateSuggestions(@Nullable PsiType selectedType) {
    if (selectedType == null) return;
    ReadAction.nonBlocking(() -> myTypesToSuggestions.computeIfAbsent(selectedType, myGenerator::getSuggestedNameInfo))
      .expireWhen(myNameField.getProject()::isDisposed)
      .finishOnUiThread(ModalityState.any(), nameInfo -> {
        String name = myNameField.getEnteredName();
        myNameField.setSuggestions(nameInfo.names);
        if (name.isEmpty()) {
          myNameField.select(0, myNameField.getEnteredName().length());
        }
      })
      .submit(AppExecutorUtil.getAppExecutorService());
  }
private void updateSuggestions(@Nullable PsiType selectedType)