String () { final StringBuilder builder = new StringBuilder(); builder.append(getMethodName()); builder.append("("); final List<PyParameterTableModelItem> parameters = myParametersTableModel.getItems(); for (int i = 0; i < parameters.size(); i++) { final PyParameterTableModelItem parameterInfo = parameters.get(i); builder.append(parameterInfo.parameter.getName()); final String defaultValue = parameterInfo.defaultValueCodeFragment.getText(); if (!defaultValue.isEmpty() && parameterInfo.isDefaultInSignature()) { builder.append(" = ").append(defaultValue); } if (i != parameters.size() - 1) { builder.append(", "); } } builder.append(")"); return builder.toString(); }