private static @NotNull String createMarker(@NotNull PsiFile file, int offset) {
    Project project = file.getProject();
    PsiElement injectedElement = InjectedLanguageManager.getInstance(project).findInjectedElementAt(file, offset);
    Language language = injectedElement != null ? injectedElement.getLanguage() : PsiUtilCore.getLanguageAtOffset(file, offset);

    CoreCodeStyleUtil.setSequentialProcessingAllowed(false);
    NewLineIndentMarkerProvider markerProvider = NewLineIndentMarkerProvider.EP.forLanguage(language);
    String marker = markerProvider == null ? null : markerProvider.createMarker(file, offset);
    if (marker != null) {
      return marker;
    }

    PsiComment comment = null;
    try {
      comment = PsiParserFacade.getInstance(project).createLineOrBlockCommentFromText(language, "");
    }
    catch (Throwable ignored) {
    }
    String text = comment != null ? comment.getText() : null;
    return text != null ? text : DUMMY_IDENTIFIER;
  }
private static @NotNull String createMarker(@NotNull PsiFile file, int offset)