@NotNull private ExternalProjectSettings getCurrentExternalProjectSettings() { ExternalProjectSettings result = myControl.getProjectSettings().clone(); File externalProjectConfigFile = getExternalProjectConfigToUse(new File(result.getExternalProjectPath())); final String linkedProjectPath = FileUtil.toCanonicalPath(externalProjectConfigFile.getPath()); assert linkedProjectPath != null; result.setExternalProjectPath(linkedProjectPath); return result; }
@Nullable private File getProjectFile() { String path = myControl.getProjectSettings().getExternalProjectPath(); return path == null ? null : new File(path); }