String (PsiPolyadicExpression polyadicExpression, CommentTracker tracker) { final IElementType tokenType = polyadicExpression.getOperationTokenType(); final boolean tokenTypeAndAnd = tokenType.equals(JavaTokenType.ANDAND); final String flippedToken = tokenTypeAndAnd ? "||" : "&&"; final StringBuilder result = new StringBuilder(); for (PsiElement child : polyadicExpression.getChildren()) { if (child instanceof PsiJavaToken) { result.append(flippedToken); } else if (child instanceof PsiExpression) { result.append(convertLeafExpression((PsiExpression)child, tokenTypeAndAnd, tracker)); } else { result.append(tracker.text(child)); } } return result.toString(); }