void (@NotNull String relativePath, @NotNull String text, @NotNull Consumer<VirtualFile> fileConsumer) { final Sdk sdk = PythonSdkUtil.findPythonSdk(myFixture.getModule()); final VirtualFile libDir = PySearchUtilBase.findLibDir(sdk); if (libDir != null) { runWithAdditionalFileIn(relativePath, text, libDir, fileConsumer); } else { createAdditionalRootAndRunWithIt( sdk, "Lib", OrderRootType.CLASSES, root -> runWithAdditionalFileIn(relativePath, text, root, fileConsumer) ); } }