if (srcRoot != null && srcRoot.equals(virtualFile.getParent())) {
result.addProblem(packageDeclaration,
"File should be inside a folder named '" + packageName + "'",
ProblemHighlightType.GENERIC_ERROR,
new RepackageFileFix(srcRoot, packageName));
return;
}
String targetPackageName = virtualFile.getParent().getName();
// We are only interested in the package name without any "."