private void reset() {
          // it is much easier to just initialize everything next time from scratch than maintain incremental updates
          for (PsiReferenceRegistrarImpl registrar : myRegistrars.values()) {
            registrar.cleanup();
            registrar.clearBindingsCache();
          }
          myRegistrars.clear();
        }
private void reset()