private static int getRate(@NotNull ResolveResult resolveResult) {
    return resolveResult instanceof RatedResolveResult ? ((RatedResolveResult)resolveResult).getRate() : RatedResolveResult.RATE_NORMAL;
  }
private static int getRate(@NotNull ResolveResult resolveResult)