@Override
  @Deprecated
  public @Nullable String getLineIndent(final @NotNull Document document, int offset) {
    if (myProject == null) return null;
    PsiDocumentManager.getInstance(myProject).commitDocument(document);
    return CodeStyleManager.getInstance(myProject).getLineIndent(document, offset);
  }
@Override
  @Deprecated
  public @Nullable String getLineIndent(final @NotNull Document document, int offset)