String (@NotNull ExternalProjectDependency projectDependency) { DependencyScope dependencyScope = getDependencyScope(projectDependency.getScope()); String projectPath = projectDependency.getProjectPath(); String moduleId = StringUtil.isEmpty(projectPath) || ":".equals(projectPath) ? projectDependency.getName() : projectPath; if (Dependency.DEFAULT_CONFIGURATION.equals(projectDependency.getConfigurationName())) { moduleId += dependencyScope == DependencyScope.TEST ? ":test" : ":main"; } else { moduleId += (':' + projectDependency.getConfigurationName()); } return moduleId; }