void (@NotNull DocumentEvent e) { PsiClass aClass = JavaPsiFacade .getInstance(myProject) .findClass(targetClassChooser.getText(), searchScope); targetClass = aClass instanceof KtLightClassForSourceDeclaration ? ((KtLightClassForSourceDeclaration) aClass).getKotlinOrigin() : aClass; validateButtons(); }