void (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); } }