ExternalProjectRefreshCallback (@NotNull Project project, @NotNull ExternalProjectSettings projectSettings) { return new ExternalProjectRefreshCallback() { @Override public void onSuccess(@Nullable final DataNode<ProjectData> externalProject) { if (externalProject == null) { return; } ProjectDataManager.getInstance().importData(externalProject, project); } }; }