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