public boolean hasDirtyScopes() {
    synchronized (LOCK) {
      if (!myReady) return false;
      LOG.assertTrue(myDirtInProgress == null);

      return !myDirtBuilder.isEmpty();
    }
  }
public boolean hasDirtyScopes()