protected void installPathCompletion(FileChooserDescriptor fileChooserDescriptor, @Nullable Disposable parent) {
    Application application = ApplicationManager.getApplication();
    if (application == null || application.isUnitTestMode() || application.isHeadlessEnvironment()) return;
    FileChooserFactory instance = FileChooserFactory.getInstance();
    if (instance != null) {
      instance.installFileCompletion(getChildComponent(), fileChooserDescriptor, true, parent);
    }
  }
protected void installPathCompletion(FileChooserDescriptor fileChooserDescriptor, @Nullable Disposable parent)