@Override
  protected boolean isAllowedConstructorCall(@NotNull UCallExpression expression) {
    // allow using 'new Insets()' in methods returning 'JBInsets'
    UElement parent = expression.getUastParent();
    if (!(parent instanceof UCallExpression containingCall) || containingCall.getKind() != UastCallKind.METHOD_CALL) return false;
    PsiType type = containingCall.getReturnType();
    if (!(type instanceof PsiClassType classType)) return false;
    PsiClass resolvedClass = classType.resolve();
    if (resolvedClass == null) return false;
    return JB_INSETS_CLASS_NAME.equals(resolvedClass.getQualifiedName());
  }
@Override
  protected boolean isAllowedConstructorCall(@NotNull UCallExpression expression)