private static @NotNull String getHeadStringOnCurrentLine(InsertionContext context, @NotNull String lookupString) {
    String head = getHeadString(context, lookupString);
    int lineStart = -1;
    for (int idx = head.length() - 1; idx >= 0; idx--) {
      char next = head.charAt(idx);
      if (isCRLF(next)) {
        lineStart = idx;
        break;
      }
    }
    return head.substring(lineStart + 1);
  }
private static @NotNull String getHeadStringOnCurrentLine(InsertionContext context, @NotNull String lookupString)