SONARJAVA-306: provide two possible refactorings by using enum of final class