void () { if (thisClassesToMembers.isEmpty()) return; parametersPanel.setLayout(new VerticalFlowLayout(VerticalFlowLayout.TOP, 0, 0, true, true)); Fe10KotlinNewDeclarationNameValidator validator = new Fe10KotlinNewDeclarationNameValidator( (PsiElement) method, null, KotlinNameSuggestionProvider.ValidatorTarget.PARAMETER, new ArrayList<>() ); for (KtClass ktClass : thisClassesToMembers.keySet()) { KotlinType type = MoveKotlinMethodProcessorKt.defaultType(ktClass); if (type == null) continue; @SuppressWarnings("DialogTitleCapitalization") String text = KotlinBundle.message("title.select.a.name.for.this.parameter", ktClass.getName()); parametersPanel.add(new TitledSeparator(text, null)); List<String> suggestedNames = Fe10KotlinNameSuggester.INSTANCE.suggestNamesByType(type, validator, null); String suggestedName = suggestedNames.isEmpty() ? "parameter" : suggestedNames.get(0); EditorTextField field = new EditorTextField(suggestedName, myProject, KotlinFileType.INSTANCE); oldClassParameterNameFields.put(ktClass, field); parametersPanel.add(field); } }