String (@NotNull ExtractMethodSettings<Object> settings) { final StringBuilder builder = new StringBuilder(); if (isClassMethod) { builder.append("cls"); } else if (isMethod && !isStaticMethod) { builder.append("self"); } for (AbstractVariableData variableData : settings.getAbstractVariableData()) { if (variableData.passAsParameter) { if (builder.length() != 0) { builder.append(", "); } builder.append(variableData.name); } } builder.insert(0, "("); builder.insert(0, settings.getMethodName()); builder.insert(0, "def "); builder.append(")"); return builder.toString(); }