Move nested class to other file

Hello,
having

data class MainClass internal constructor(val classes: List<NestedClass>) {
data class NestedClass internal constructor(val value: String){}
}

is there a way to move NestedClass to other file, so I will have one class definition per file?

I tried

data class MainClass.NestedClass internal constructor(val value: String){}

but that doesn’t work