private int getPriority(@NotNull Object o) {
      if (o instanceof PrioritizedDocumentListener) {
        return ((PrioritizedDocumentListener)o).getPriority();
      }
      return Integer.MAX_VALUE;
    }
private int getPriority(@NotNull Object o)