void () { myTestRunnerComboBox.setSelectedItem(myModel.getTestRunner()); myTestRunnerComboBox.repaint(); myModel.reset(); myDocstringFormatComboBox.setSelectedItem(myDocumentationSettings.getFormat()); myWorkDir.setText(ReSTService.getInstance(myModule).getWorkdir()); txtIsRst.setSelected(ReSTService.getInstance(myModule).txtIsRst()); analyzeDoctest.setSelected(myDocumentationSettings.isAnalyzeDoctest()); renderExternal.setSelected(myDocumentationSettings.isRenderExternalDocumentation()); myRequirementsPathField.setText(getRequirementsPath()); // TODO: Move pipenv settings into a separate configurable final JBTextField pipEnvText = ObjectUtils.tryCast(myPipEnvPathField.getTextField(), JBTextField.class); if (pipEnvText != null) { final String savedPath = PipenvKt.getPipEnvPath(PropertiesComponent.getInstance()); if (savedPath != null) { pipEnvText.setText(savedPath); } else { final File executable = PipenvKt.detectPipEnvExecutable(); if (executable != null) { pipEnvText.getEmptyText().setText(PyBundle.message("configurable.pipenv.auto.detected", executable.getAbsolutePath())); } } } }