void (@NotNull PsiFile file) { if (file instanceof RequirementsFile) { final Module module = ModuleUtilCore.findModuleForPsiElement(file); if (module != null && file.getVirtualFile().equals(PyPackageUtil.findRequirementsTxt(module))) { if (file.getText().trim().isEmpty()) { registerProblem(file, PyPsiBundle.message("INSP.package.requirements.requirements.file.empty"), ProblemHighlightType.GENERIC_ERROR_OR_WARNING, null, new PyGenerateRequirementsFileQuickFix(module)); } else { checkPackagesHaveBeenInstalled(file, module); } } } }