private static boolean isConstructor(UCallExpression callExpression, String className) {
    if (callExpression.getKind() != UastCallKind.CONSTRUCTOR_CALL) return false;
    PsiMethod target = callExpression.resolve();
    return target != null && target.getName().equals(className);
  }
private static boolean isConstructor(UCallExpression callExpression, String className)