private static @Nullable TextRange getCommentRange(@NotNull PsiComment comment,
                                                     @NotNull Set<? super PsiElement> processedComments,
                                                     @NotNull Predicate<? super PsiElement> isCustomRegionFunc,
                                                     @NotNull CodeDocumentationAwareCommenter docCommenter) {
    final IElementType commentType = comment.getTokenType();
    if (commentType == docCommenter.getDocumentationCommentTokenType() || commentType == docCommenter.getBlockCommentTokenType()) {
      return comment.getTextRange();
    }

    if (commentType != docCommenter.getLineCommentTokenType()) return null;

    return getOneLineCommentRange(comment, processedComments, isCustomRegionFunc, docCommenter);
  }
private static @Nullable TextRange getCommentRange(@NotNull PsiComment comment,
                                                     @NotNull Set<? super PsiElement> processedComments,
                                                     @NotNull Predicate<? super PsiElement> isCustomRegionFunc,
                                                     @NotNull CodeDocumentationAwareCommenter docCommenter)