void () { if (myFoundProject) return; Path directory = myFirstDirectory; if (directory == null) return; for (CheckoutListener listener : CheckoutListener.COMPLETED_EP_NAME.getExtensionList()) { try { boolean foundProject = listener.processCheckedOutDirectory(myProject, directory); if (foundProject) { LOG.debug(String.format("Cloned dir '%s' processed by %s", directory, listener)); break; } } catch (Exception e) { LOG.warn("Error in checkout listener: " + listener, e); } } Project project = findProjectByBaseDirLocation(directory); if (project != null) { VcsStatisticsCollector.CLONED_PROJECT_OPENED.log(project); } }