private ModifiableWorkspace doGetModifiableWorkspace() {
    return ReadAction.compute(() -> myProject.getService(ExternalProjectsWorkspaceImpl.class)
                  .createModifiableWorkspace(() -> Arrays.asList(getModules())));
  }
private ModifiableWorkspace doGetModifiableWorkspace()