String (@Nullable PsiStatement statement, boolean skipElse) { if (statement == null) { return null; } if (statement instanceof PsiBlockStatement || skipElse && statement instanceof PsiIfStatement) { return statement.getText(); } return "{ " + statement.getText() + "\n }"; }