Module (Module module) { try { PsiDirectory directory = getDirectory(getConfiguration().getPersistentData()); return ModuleUtilCore.findModuleForPsiElement(directory); } catch (CantRunException e) { return module; } }