private static boolean isInsidePlainComment(int offset, @Nullable PsiElement element) {
    if (!(element instanceof PsiComment) || element instanceof PsiDocCommentBase || !element.getTextRange().contains(offset - 1)) {
      return false;
    }

    if (element instanceof PsiLanguageInjectionHost && InjectedLanguageUtilBase.hasInjections((PsiLanguageInjectionHost)element)) {
      return false;
    }

    return true;
  }
private static boolean isInsidePlainComment(int offset, @Nullable PsiElement element)