private static @NotNull String getIndentation(InsertionContext context, @NotNull String lookupString) {
    String currentLineHead = getHeadStringOnCurrentLine(context, lookupString);
    String spaces = getLeadingSpacesStartingFrom(currentLineHead, 0);
    int spacesLength = spaces.length();
    if (spacesLength < currentLineHead.length() && currentLineHead.charAt(spacesLength) == '-') {
      //array contents is aligned by the key after '-' not by '-' itself
      spaces += " " + getLeadingSpacesStartingFrom(currentLineHead, spacesLength + "-".length());
    }
    return spaces;
  }
private static @NotNull String getIndentation(InsertionContext context, @NotNull String lookupString)