boolean (@Nullable IElementType tokenType, boolean isNegated, @NotNull StringBuilder sb) { if (tokenType == null) { if (isNegated) sb.append("-"); } else { if (isNegated && isAdditive(tokenType)) { IElementType inverted = invert(tokenType); if (inverted == null) return false; sb.append(getOperator(inverted)); } else { String operator = getOperator(tokenType); if (operator == null) return false; sb.append(isNegated ? operator + "-" : operator); } } return true; }