private static @Nls @NotNull String getDialogMessage(@NotNull String name,
                                                       @NlsSafe @Nullable String actionString,
                                                       boolean isSuperAbstract,
                                                       boolean isParentInterface,
                                                       boolean isContainedInInterface,
                                                       String @NotNull [] classNames) {
    HtmlBuilder labelText = new HtmlBuilder();
    int classType = isParentInterface ? 0 : 1;
    labelText.append(JavaBundle.message("label.method", name)).br();
    if (classNames.length == 1) {
      final String className = classNames[0];
      labelText.append(isContainedInInterface || !isSuperAbstract
                       ? JavaBundle.message("label.overrides.method.of_class_or_interface.name", classType, className)
                       : JavaBundle.message("label.implements.method.of_class_or_interface.name", classType, className));
      labelText.br();
    }
    else {
      labelText.append(JavaBundle.message("label.implements.method.of_interfaces"));

      for (final @NlsSafe String className : classNames) {
        labelText.br().nbsp(2).append("'").append(className).append("'");
      }
    }

    labelText.br();
    labelText.append(HtmlChunk.text(JavaBundle.message("prompt.do.you.want.to.action_verb.the.method.from_class", 
                                                       classNames.length, 
                                                       ObjectUtils.notNull(actionString, RefactoringBundle.message("to.refactor")))));
    return labelText.wrapWithHtmlBody().toString();
  }
private static @Nls @NotNull String getDialogMessage(@NotNull String name,
                                                       @NlsSafe @Nullable String actionString,
                                                       boolean isSuperAbstract,
                                                       boolean isParentInterface,
                                                       boolean isContainedInInterface,
                                                       String @NotNull [] classNames)