Computable<Boolean> (int inputId, @Nullable FileContent content) { try { int fileTypeId = getFileTypeId(content == null ? null : content.getFileType()); if (LOG.isDebugEnabled()) { if (content == null) { LOG.debug("Map input: inputId(" + inputId + ") -> null, because content is null"); } else { LOG.debug("Map input: inputId(" + inputId + ") -> fileType(" + content.getFileType() + ", fileTypeId=" + fileTypeId + ")"); } } return () -> updateIndex(inputId, checkFileTypeIdIsShort(fileTypeId)); } catch (StorageException e) { throw new RuntimeException(e); } }