class ImportInfoTooltipManager implements TooltipManager {

    public Observable<Boolean> needToShowImportInfo() {
        return intentImportProcessor.getLastResult()
                .map(intentImportResultOptional -> {
                    if (intentImportResultOptional.isPresent()) {
                        final FileType fileType = intentImportResultOptional.get().getFileType();
                        return fileType == FileType.Image || fileType == FileType.Pdf;
                    } else {
                        return false;
                    }
                });
    }

    @Inject public  ImportInfoTooltipManager(@NonNull IntentImportProcessor intentImportProcessor, @NonNull IntentImportProvider intentImportProvider);

}