Could we move this function to FileUtils and use `ProjectManager.getAllFiles(FileUtils.filterBinaryFiles)`?