private static boolean isWhiteSpaceWithoutLineFeeds(@Nullable PsiElement betweenBraces) {
    return betweenBraces instanceof PsiWhiteSpace && !betweenBraces.textContains('\n');
  }
private static boolean isWhiteSpaceWithoutLineFeeds(@Nullable PsiElement betweenBraces)