void (@NotNull LighterAST tree, @NotNull LighterASTNode parameterList, StringBuilder buf) { final List<LighterASTNode> children = tree.getChildren(parameterList); boolean isFirstParameter = true; boolean appendCloseBracket = false; for (final LighterASTNode node : children) { final IElementType tokenType = node.getTokenType(); if (tokenType == JavaTokenType.LPARENTH) { buf.append('('); appendCloseBracket = true; } else if (tokenType == JavaStubElementTypes.PARAMETER) { if (!isFirstParameter) { buf.append(", "); } formatParameter(tree, node, buf); if (isFirstParameter) { isFirstParameter = false; } } } if (appendCloseBracket) buf.append(')'); }