final Element projectSettings = linkedSettings != null ? linkedSettings.getChild(PROJECT_SETTINGS) : null;
if (projectSettings == null) {
return;
}
final Optional<String> projectPath = Optional.ofNullable(JDOMExternalizerUtil.readField(projectSettings, EXTERNAL_PROJECT_PATH));
<BUG>final Optional<File> pantsExecutable = projectPath.flatMap(path -> PantsUtil.findPantsExecutable(Optional.of(new File(path))));
if (!pantsExecutable.isPresent()) {</BUG>
return;
}
final boolean useIdeaProjectJdk = Boolean.valueOf(JDOMExternalizerUtil.readField(componentTag, ENFORCE_JDK, "false"));

final Element projectSettings = linkedSettings != null ? linkedSettings.getChild(PROJECT_SETTINGS) : null;
if (projectSettings == null) {
return;
}
final Optional<String> projectPath = Optional.ofNullable(JDOMExternalizerUtil.readField(projectSettings, EXTERNAL_PROJECT_PATH));
final Optional<File> pantsExecutable = projectPath.flatMap(path -> PantsUtil.findPantsExecutable(new File(path)));
if (!pantsExecutable.isPresent()) {
return;
}
final boolean useIdeaProjectJdk = Boolean.valueOf(JDOMExternalizerUtil.readField(componentTag, ENFORCE_JDK, "false"));
