boolean (@NotNull ProgressIndicator progressIndicator, @NotNull Processor<? super FoundItemDescriptor<Object>> consumer, FilteringGotoByModel<?> model, Object element, int degree) { if (progressIndicator.isCanceled()) return false; if (element == null) { LOG.error("Null returned from " + model + " in " + this.getClass().getSimpleName()); return true; } return consumer.process(new FoundItemDescriptor<>(element, degree)); }