import java.util.*
import com.haulmont.cuba.core.global.*
import com.haulmont.cuba.core.entity.*;
import com.groupstp.rtneo.entity.*
import com.haulmont.cuba.core.entity.FileDescriptor
import com.haulmont.cuba.core.app.FileStorageAPI
import java.io.InputStream
import java.io.InputStreamReader
import java.io.ByteArrayOutputStream
import org.apache.commons.io.IOUtils
import java.nio.charset.StandardCharsets;
import com.opencsv.CSVReader;
import org.apache.commons.collections.CollectionUtils
import java.util.stream.Collectors;
FileStorageAPI fileStorageAPI=AppBeans.get(FileStorageAPI.NAME);
//ID файла
String id='8de21a4e-b9cd-2a13-0b8b-a9136c738a7e'
FileDescriptor fd = dataManager.load(FileDescriptor.class)
.id(UuidProvider.fromString(id))
.view(View.MINIMAL)
.optional().orElse(null);
if(fd == null){throw new RuntimeException("fileNotFound")}
InputStream inputStream=fileStorageAPI.openStream(fd)
CSVReader reader = new CSVReader(new InputStreamReader(inputStream, "UTF-8"));
List<String> listInn = reader.readAll().stream()
.map{e->e[0]}.collect(Collectors.toList())