protected void chooseFile(FileChooserDescriptor descriptor) {
    FileChooser.chooseFile(descriptor, getProject(), myTextComponent, getInitialFile(), this::onFileChosen);
  }
protected void chooseFile(FileChooserDescriptor descriptor)