void (boolean hasFile, boolean hasRequirements) { final Module module = myFixture.getModule(); if (hasFile) { assertTrue(PyPackageUtil.hasRequirementsTxt(module)); assertNotNull(PyPackageUtil.findRequirementsTxt(module)); if (hasRequirements) { checkRequirements(PyPackageUtil.getRequirementsFromTxt(module)); } else { final List<PyRequirement> requirements = PyPackageUtil.getRequirementsFromTxt(module); assertNotNull(requirements); assertEmpty(requirements); } } else { assertFalse(PyPackageUtil.hasRequirementsTxt(module)); assertNull(PyPackageUtil.findRequirementsTxt(module)); assertNull(PyPackageUtil.getRequirementsFromTxt(module)); } }