class LicenseInfoParser {

    public <T> boolean isApplicableTo(Attachment attachmentContent, User user, T context) throws TException {
        List<String> applicableFileExtensions = getApplicableFileExtensions();
        if(applicableFileExtensions.size() == 0){
            return true;
        }
        String lowerFileName = attachmentContent.getFilename().toLowerCase();
        return applicableFileExtensions.stream()
                .anyMatch(extension -> lowerFileName.endsWith(extension.toLowerCase()));
    }

    protected  LicenseInfoParser(AttachmentConnector attachmentConnector, AttachmentContentProvider attachmentContentProvider);

}