squid:UselessImportCheck does not consider static imports used in class annotations

This code gives a warning that the rule unnecessary import is violated, the import DEFAULT_ALIAS is necessary for compilation however.

package com.sonarqube;

import static Entity.DEFAULT_ALIAS;

[…]

@Entity
@DefaultAlias(DEFAULT_ALIAS)
public class Entity {

public static final String DEFAULT_ALIAS = "alias";

[…]
}

Hello @renoth,

Thanks for the feedback!
This issue is similar to the one reported here:

There is now a ticket to track it!

Best,
Quentin