You can use static imports:
import static yourpackagename.TrackingHandler.*;
And then just use static members as:
doSomething(doableThing, EVENT_AREA_FINANCE, SUCCEEDED(EVENT_KEY_THING));
The static import construct allows unqualified access to static members without inheriting from the type containing the static members.
The static import declaration is analogous to the normal import declaration. Where the normal import declaration imports classes from packages, allowing them to be used without package qualification, the static import declaration imports static members from classes, allowing them to be used without class qualification.
So when should you use static import? Very sparingly! Only use it when you'd otherwise be tempted to declare local copies of constants, or to abuse inheritance (the Constant Interface Antipattern).
Suggested Reading:
- What does the “static” modifier after “import” mean?
- JLS 7.5.3 and 7.5.4
- Should I use static import?
Note: If static import is used indiscriminately, it will likely make code more difficult to understand.