Two false positives about the rule RSPEC-2974

Hello, I have met the same problem by using Sonarqube 9.7.1. The original case has a minor grammar issue. Here are my testcases. :blush:

import lombok.AllArgsConstructor;
@AllArgsConstructor
public class B {
    private B(int a){

    }
    public static int magic(){
        return 42;
    }
}
import lombok.NoArgsConstructor;
@NoArgsConstructor
public class C {
    private C(int a){

    }
    public static int magic(){
        return 42;
    }
}