public static int insertStringAtCaret(@NotNull Editor editor, @NotNull String s, boolean toProcessOverwriteMode) {
    return insertStringAtCaret(editor, s, toProcessOverwriteMode, s.length());
  }
public static int insertStringAtCaret(@NotNull Editor editor, @NotNull String s, boolean toProcessOverwriteMode)