I currently working on a plugin for my project. I need to do a verification of files in my project whether they are present in some sort of List of files' names and if they are not I need to set a fileLevel() warning. I implemented Annotator.annotate() but it is not fully covered my case.. I also need to add/remove fileLevel() warning from the file when the List of files is being changed (adding/removing). I can't do that because I need to call annotate() from my code manually. I decided to implement an event logic that will trigger the annotation of files for both cases from the code. The question: Is there a way to create the instance of AnnotationHolderImpl (all constructors of this class are marked as @Deprecated) to use it in the event class?