int (@Nullable Map<File, Integer> classpathOrderMap, @NotNull Collection<File> files) { int order = -1; for (File file : files) { if (classpathOrderMap != null) { Integer fileOrder = classpathOrderMap.get(file); if (fileOrder != null && (order == -1 || fileOrder < order)) { order = fileOrder; } if (order == 0) break; } } return order; }