fileNameWithoutSuffix

fun PsiFile.fileNameWithoutSuffix(multiplatformTargetSuffixes: List<String> = emptyList()): String

Removes kotlin specific file name suffixes, e.g. .kt. Note, will not remove other possible/known file suffixes like '.java'