PythonPathEditor (@NotNull final Sdk sdk) { PythonPathEditor pathEditor; if (PythonSdkUtil.isRemote(sdk)) { pathEditor = new PyRemotePathEditor(myProject, sdk); } else { pathEditor = new PythonPathEditor(PyBundle.message("python.sdk.configuration.tab.title"), OrderRootType.CLASSES, FileChooserDescriptorFactory.createAllButJarContentsDescriptor()); } pathEditor.addReloadPathsActionCallback(this::reloadSdk); return pathEditor; }