void (@NotNull PsiClass psiClass) { final JTextField textField = myPatternTextField.getTextField(); final String text = textField.getText(); textField.setText(text + (!text.isEmpty() ? "||" : "") + psiClass.getQualifiedName()); }