boolean (@NotNull final PsiDirectory element, @NotNull final AbstractPythonLegacyTestRunConfiguration configuration) { final VirtualFile virtualFile = element.getVirtualFile(); if (!isTestFolder(virtualFile, element.getProject())) return false; final String path = virtualFile.getPath(); configuration.setTestType(AbstractPythonLegacyTestRunConfiguration.TestType.TEST_FOLDER); configuration.setFolderName(path); configuration.setWorkingDirectory(path); configuration.setGeneratedName(); setModuleSdk(element, configuration); return true; }