I'm trying to create a self-contained single file application to serve as a way of extending my plugin's functionality with custom code. The idea being my plugin will look for these files in a directory like .idea (but created specifically for this purpose), compile, and execute the code when appropriate. The issue that I'm seeing with this approach is that a lot of the analysis, syntax checking, and dependencies that are available for source files under the src are not available when I place these files under the aforementioned directory.
I've noticed that scratch files seem to have all the inspections I'd like to use for these custom source files. How would I enable those inspections and how would I add dependencies to these source files?