static HighlightInfo.Builder checkFileLocation(@NotNull PsiJavaModule element, @NotNull PsiFile file) {
    VirtualFile vFile = file.getVirtualFile();
    if (vFile != null) {
      VirtualFile root = ProjectFileIndex.getInstance(file.getProject()).getSourceRootForFile(vFile);
      if (root != null && !root.equals(vFile.getParent())) {
        String message = JavaErrorBundle.message("module.file.wrong.location");
        HighlightInfo.Builder info =
          HighlightInfo.newHighlightInfo(HighlightInfoType.ERROR).range(range(element)).descriptionAndTooltip(message);
        info.registerFix(new MoveFileFix(vFile, root, QuickFixBundle.message("move.file.to.source.root.text")), null, null, null, null);
        return info;
      }
    }

    return null;
  }
static HighlightInfo.Builder checkFileLocation(@NotNull PsiJavaModule element, @NotNull PsiFile file)