Converter from Java: better conversion from java-specific to Kotlin classes

 #KT-5173 Fixed