private static boolean isEnabled() {
    for (JavacFileReferencesRegistrar listener : JpsServiceManager.getInstance().getExtensions(JavacFileReferencesRegistrar.class)) {
      if (listener.isEnabled()) {
        return true;
      }
    }
    return false;
  }
private static boolean isEnabled()