void () { scheduleStructureRequest(() -> { final Collection<ExternalProjectInfo> projectsData = ProjectDataManager.getInstance().getExternalProjectsData(myProject, myExternalSystemId); final List<DataNode<ProjectData>> toImport = ContainerUtil.mapNotNull(projectsData, info -> info.getExternalProjectStructure()); assert myStructure != null; myStructure.updateProjects(toImport); }); }