private void searchForClassReferences(Map<String, CompiledClass> classes, Set<String> exclusions,
      List<String> referencedClasses, StringWriter writer) {
    final List<String> keys = new ArrayList<>(classes.keySet());
    Collections.sort(keys);
    for (String className : keys) {
      if (exclusions.contains(className)) {
        continue;
      }
      CompiledClass compiledClass = classes.get(className);
      for (String referencedClass : referencedClasses) {
        if (compiledClass.refersToClass(referencedClass)) {
          writer.append(className).append(" uses ").append(referencedClass).append("\n");
        }
      }
    }
  }
Look for new uses of restricted classes
geode-core/src/integrationTest/java/org/apache/geode/codeAnalysis/RestrictUseOfInetAddressJUnitTest.java