ConvertToForEachLoopIntention - smaller range + refactored

This commit is contained in:
Valentin Kipyatkov
2015-04-16 13:54:46 +03:00
parent fc8b046694
commit a155b0c860
3 changed files with 41 additions and 85 deletions
@@ -69,6 +69,11 @@ public class JetPsiUtil {
}
}
@NotNull
public static JetExpression safeDeparenthesize(@NotNull JetExpression expression) {
return safeDeparenthesize(expression, true);
}
@NotNull
public static JetExpression safeDeparenthesize(@NotNull JetExpression expression, boolean deparenthesizeBinaryExpressionWithTypeRHS) {
JetExpression deparenthesized = deparenthesize(expression, deparenthesizeBinaryExpressionWithTypeRHS);