public static TextAttributesKey getAttributesKey(final int oldLine,
                                                   @NotNull final TreeMap<Integer, LineData> lines) {

    return getAttributesKey(lines.get(oldLine));
  }
public static TextAttributesKey getAttributesKey(final int oldLine,
                                                   @NotNull final TreeMap<Integer, LineData> lines)