private static FileObject findProjectDir(ProjectContext projectContext, ResourceKey issueProjectKey, ProjectKeyChecker projectKeyChecker) {
if (projectKeyChecker.equals(projectContext.getConfiguration(), issueProjectKey, false) ) {
return projectContext.getProject().getProjectDirectory();
}
Set<Project> subprojects = ProjectUtils.getContainedProjects(projectContext.getProject(), true);
if (subprojects != null) {
for (Project subproject : subprojects) {
SonarQubeProjectConfiguration subprojectInfo = projectContext.getConfiguration().createConfiguration(subproject);
if (projectKeyChecker.equals(subprojectInfo, issueProjectKey, true) ) {
return subproject.getProjectDirectory();
}
}
}
return null;
}