@NlsSafe
  @NotNull
  private static String addPossibleCalleesRepresentation(@NotNull @InspectionMessage String prefix,
                                                         @NotNull List<PyCallExpression.PyArgumentsMapping> mappings,
                                                         @NotNull TypeEvalContext context,
                                                         boolean isOnTheFly) {
    final @NlsSafe String separator = isOnTheFly ? "<br>" : " ";
    final @NlsSafe String possibleCalleesRepresentation = calculatePossibleCalleesRepresentation(mappings, context, isOnTheFly);

    if (isOnTheFly) {
      return XmlStringUtil.wrapInHtml(
        prefix + separator +
        PyPsiBundle.message("INSP.possible.callees") + ":" + separator +
        possibleCalleesRepresentation
      );
    }
    else {
      return prefix + "." + separator +
             PyPsiBundle.message("INSP.possible.callees") + ":" + separator +
             possibleCalleesRepresentation;
    }
  }
@NlsSafe
  @NotNull
  private static String addPossibleCalleesRepresentation(@NotNull @InspectionMessage String prefix,
                                                         @NotNull List<PyCallExpression.PyArgumentsMapping> mappings,
                                                         @NotNull TypeEvalContext context,
                                                         boolean isOnTheFly)