public static boolean isPatternForDateFormat(@NotNull PsiLiteralExpression literalExpression) {
    PsiType type = literalExpression.getType();
    if (type == null || !type.equalsToText(CommonClassNames.JAVA_LANG_STRING)) {
      return false;
    }
    PsiElement element = ExpressionUtils.getPassThroughParent(literalExpression);
    if (element == null) {
      return false;
    }
    if (!(element instanceof PsiExpressionList expressionList)) {
      return false;
    }

    if (!(expressionList.getParent() instanceof PsiCall psiCall)) {
      return false;
    }

    if (psiCall instanceof PsiMethodCallExpression callExpression) {
      ArgumentMatcher matcher = SKIP_ARGUMENT_METHOD_HANDLER.mapFirst(callExpression);
      if (matcher == null) {
        return false;
      }
      return matcher.test(literalExpression);
    }
    if (psiCall instanceof PsiNewExpression newExpression) {
      PsiJavaCodeReferenceElement reference = newExpression.getClassReference();
      if (reference == null) {
        return false;
      }
      BiPredicate<PsiNewExpression, PsiElement> predicate =
        SKIP_ARGUMENT_CONSTRUCTOR_HANDLER.get(reference.getQualifiedName());
      if (predicate == null) {
        return false;
      }
      return predicate.test(newExpression, literalExpression);
    }
    return false;
  }
public static boolean isPatternForDateFormat(@NotNull PsiLiteralExpression literalExpression)