private static @NotNull String getTailString(@NotNull InsertionContext context) {
    return context.getDocument().getText().substring(context.getTailOffset());
  }
private static @NotNull String getTailString(@NotNull InsertionContext context)