@Override
    public void openFiles(
        @NotNull List<Path> fileList,
        @NotNull Map<String, String> parameters,
        @Nullable DBPDataSourceContainer dataSource
    ) {
        for (Path path : fileList) {
            File file = path.toFile();
            if (dataSource != null) {
                EditorUtils.setFileDataSource(file, new SQLNavigatorContext(dataSource));
            }
            EditorUtils.openExternalFileEditor(file, UIUtils.getActiveWorkbenchWindow());
        }
    }
Handles SQL files. Local sql files are processed by resource handlers.
Here we track remote ones (usually from DBNPath)
plugins/org.jkiss.dbeaver.ui.editors.sql/src/org/jkiss/dbeaver/ui/editors/sql/scripts/SQLFileHandler.java