private static boolean checkDfaStatesConsistency(@NotNull Int2ObjectMap<DFAType> cached,
                                                   @NotNull Int2ObjectMap.Entry<DFAType> incoming) {
    if (!ApplicationManager.getApplication().isUnitTestMode() ||
        ApplicationManagerEx.isInStressTest() ||
        DfaCacheConsistencyKt.mustSkipConsistencyCheck()) {
      return true;
    }
    DFAType cachedType = cached.get(incoming.getIntKey());
    if (cachedType != null && !Objects.equals(cachedType, incoming.getValue())) {
      throw new IllegalStateException("Attempt to cache different types: for descriptor " +
                                      incoming.getIntKey() +
                                      ", existing was " +
                                      cachedType +
                                      " and incoming is " +
                                      incoming.getValue());
    }
    return true;
  }
private static boolean checkDfaStatesConsistency(@NotNull Int2ObjectMap<DFAType> cached,
                                                   @NotNull Int2ObjectMap.Entry<DFAType> incoming)