public static <T extends OrderEntry> void processOrderEntries(@NotNull Module module,
                                                                @NotNull Class<? extends T> orderEntryClass,
                                                                @NotNull Processor<? super T> processor) {
    OrderEntry[] orderEntries = ModuleRootManager.getInstance(module).getOrderEntries();
    for (OrderEntry orderEntry : orderEntries) {
      if (orderEntryClass.isInstance(orderEntry)) {
        if (!processor.process(orderEntryClass.cast(orderEntry))) {
          break;
        }
      }
    }
  }
public static <T extends OrderEntry> void processOrderEntries(@NotNull Module module,
                                                                @NotNull Class<? extends T> orderEntryClass,
                                                                @NotNull Processor<? super T> processor)