void (@NotNull final PsiElement element, @NotNull final AbstractPythonLegacyTestRunConfiguration configuration) { configuration.setUseModuleSdk(true); configuration.setModule(ModuleUtilCore.findModuleForPsiElement(element)); }