This rule flags any reference to the jakarta.faces.component.UIComponent.CURRENT_COMPONENT and CURRENT_COMPOSITE_COMPONENT constants.
The jakarta.faces.component.UIComponent.getCurrentComponent() and getCurrentCompositeComponent() methods were added in JSF 2.0 when the
jakarta.faces.component.UIComponent.CURRENT_COMPONENT and CURRENT_COMPOSITE_COMPONENT constants were introduced. The ability to
access these fields through both the constants and methods caused confusion. Replace any usage of CURRENT_COMPONENT and CURRENT_COMPOSITE_COMPONENT
with getCurrentComponent() and getCurrentCompositeComponent() respectively.
See Remove CURRENT_COMPONENT constants from UIComponent class for more information on the removed access and its replacements.