I have a custom fileTypeDetector that determines the file type of files matching an otherwise unregistered file extension dynamically. Some of these files are reported as the archive file type because they are in fact zip files. Overall this works very well, and IntelliJ adapts itself accordingly. Now I'm trying to use VirtualFileManager.findFileByUrl() to get the VirtualFile of an entry in one of these files based on a jar URL. This is returning null because of ArchiveFileSystem.isCorrectFileType() which is resolving the file type based purely on extension instead of using my fileTypeDetector.
Is there any way to work around this and get a proper VirtualFile for the entry just as if it were in a .zip or .jar file? Basically I'm trying to allow reference navigation to these archive entries. This works great when the reference target is an entry of an archive file with an extension concretely associated with an archive file type, but it doesn't work when the file type association is dynamic.
Thanks in advance for any leads!