void (int hash, @NotNull IntObjectHashMap map, @NotNull Loader loader) { Object o = map.get(hash); if (o == null) { map.put(hash, loader); } else if (o instanceof Loader) { if (ClassPath.recordLoadingInfo) { assert loader != o; } map.put(hash, new Loader[]{(Loader)o, loader}); } else { Loader[] loadersArray = (Loader[])o; if (ClassPath.recordLoadingInfo) { assert ArrayUtilRt.indexOf(loadersArray, loader, 0, loadersArray.length) == -1; } Loader[] newArray = Arrays.copyOf(loadersArray, loadersArray.length + 1); newArray[loadersArray.length] = loader; map.put(hash, newArray); } }