One can create a wrapper class that would interpret '< file' parameter, open the file for reading, then run your main class and send it the stream from the file, then run the wrapper class from IDEA run/debug configuration instead of your main class.
It's not supported, vote for https://youtrack.jetbrains.com/issue/IDEA-88717 .
One can create a wrapper class that would interpret '< file' parameter, open the file for reading, then run your main class and send it the stream from the file, then run the wrapper class from IDEA run/debug configuration instead of your main class.