interface SonarResourceKeyMaker {
String makeResourceKey(PsiFileSystemItem psiFile, SonarModuleComponent sonarModuleComponent);
}
private static String createResourceKey(final Project project, final VirtualFile virtualFile, final SonarResourceKeyMaker keyMaker) {
final SonarModuleComponent sonarModuleComponent = getSonarModuleComponent(project, virtualFile);
if (sonarModuleComponent == null) { // There is no module for this file
return null;
}
if (!sonarModuleComponent.isConfigured()) {
return null;
}
final PsiManager psiManager = PsiManager.getInstance(project);
final PsiFileSystemItem psiFile = ApplicationManager.getApplication().runReadAction(new Computable<PsiFileSystemItem>() {