private boolean shouldAddNewLineWhenBodyIsPresent(@NotNull PsiCodeBlock body) {
    return !myJavaSettings.NEW_LINE_WHEN_BODY_IS_PRESENTED || body.isEmpty();
  }
private boolean shouldAddNewLineWhenBodyIsPresent(@NotNull PsiCodeBlock body)