DocStringFormat (@NotNull PsiElement anchor) { final Module module = getModuleForElement(anchor); if (module == null) { return null; } final PyDocumentationSettings settings = PyDocumentationSettings.getInstance(module); return settings.getFormatForFile(anchor.getContainingFile()); }