Test internal without Gradle

Is it possible to access internals from test modules (using IDEA) if I’m not using Gradle? If so, how?