We have following java method in SDK , but even passing false , it list shared folders
https://dropbox.github.io/dropbox-sdk-java/api-docs/v3.1.x/com/dropbox/core/v2/files/ListFolderBuilder.html#withIncludeMountedFolders-java.lang.Boolean-
public ListFolderBuilder withIncludeMountedFolders(java.lang.Boolean includeMountedFolders)
https://www.dropbox.com/developers/documentation/http/documentation#files-list_folder
include_mounted_foldersBooleanIf true, the results will include entries under mounted folders which includes app folder, shared folder and team folder. The default for this field is True.