private static <T extends EventRequest> void applyFilter(@NotNull List<T> requests, Consumer<? super T> setter) {
    for (T request : requests) {
      try {
        // skip synthetic
        if (RequestManagerImpl.findRequestor(request) instanceof SyntheticBreakpoint) {
          continue;
        }
        boolean wasEnabled = request.isEnabled();
        if (wasEnabled) {
          request.disable();
        }
        setter.accept(request);
        if (wasEnabled) {
          request.enable();
        }
      }
      catch (InternalException | InvalidRequestStateException e) {
        LOG.info(e);
      }
    }
  }
private static <T extends EventRequest> void applyFilter(@NotNull List<T> requests, Consumer<? super T> setter)