void () { super.init(); // Set default name and select it myMethodNameTextField.setText(myDefaultName); myMethodNameTextField.setSelectionStart(0); myMethodNameTextField.setSelectionStart(myDefaultName.length()); myMethodNameTextField.getDocument().addDocumentListener(new DocumentAdapter() { @Override protected void textChanged(@NotNull DocumentEvent e) { updateOutputVariables(); updateSignature(); updateOkStatus(); } }); myVariableData = createVariableDataByNames(myArguments); myVariablesMap = createVariableMap(myVariableData); myParametersPanel.init(myVariableData); updateOutputVariables(); updateSignature(); updateOkStatus(); }