private void fireFileCreated(@NotNull Document document, @NotNull PsiFile file) {
   for (Listener listener : myListeners) {
     listener.fileCreated(file, document);
   }
 }
 void fireDocumentCreated(@NotNull Document document, PsiFile file) {
   for (Listener listener : myListeners) {
     listener.documentCreated(document, file);
   }
 }