private static boolean ensureNotPlainDocstringFormatForFile(@NotNull PsiFile file, @NotNull Module module) {
    final PyDocumentationSettings settings = PyDocumentationSettings.getInstance(module);
    if (settings.isPlain(file)) {
      final List<String> values = DocStringFormat.ALL_NAMES_BUT_PLAIN;
      final int i = PythonUiService.getInstance().showChooseDialog(null, null,
                                                                   PyPsiBundle.message("python.docstring.format"),
                                                                   PyPsiBundle.message("python.docstring.select.type"),
                                                                   ArrayUtilRt.toStringArray(values), values.get(0), null);
      if (i < 0) {
        return false;
      }
      SideEffectGuard.checkSideEffectAllowed(SideEffectGuard.EffectType.SETTINGS);
      settings.setFormat(DocStringFormat.fromNameOrPlain(values.get(i)));
    }
    return true;
  }
private static boolean ensureNotPlainDocstringFormatForFile(@NotNull PsiFile file, @NotNull Module module)