@Nullable
  String getIndentString(@Nullable Language language, @NotNull SemanticEditorPosition currPosition) {
    String baseIndent = getBaseIndent(currPosition);
    Document document = myEditor.getDocument();
    PsiFile file = PsiDocumentManager.getInstance(myProject).getPsiFile(document);
    if (file != null) {
      CommonCodeStyleSettings.IndentOptions fileOptions = CodeStyle.getIndentOptions(file);
      CommonCodeStyleSettings.IndentOptions options =
        !fileOptions.isOverrideLanguageOptions() && language != null && !(language.is(file.getLanguage()) || language.is(Language.ANY)) ?
        CodeStyle.getLanguageSettings(file, language).getIndentOptions() :
        fileOptions;
      if (options != null) {
        final int indentLength =
          baseIndent.replaceAll("\t", StringUtil.repeatSymbol(' ', options.TAB_SIZE)).length()
          + indentToSize(myIndent, options);
        return new IndentInfo(0, indentLength, 0, false).generateNewWhiteSpace(options);
      }
    }
    return null;
  }
@Nullable
  String getIndentString(@Nullable Language language, @NotNull SemanticEditorPosition currPosition)