private static boolean isMultiline(@NotNull PsiElement element) {
    String text = element.getText();
    return text.contains("\n") || text.contains("\r");
  }
private static boolean isMultiline(@NotNull PsiElement element)