private static boolean isEmptyModule(@NotNull PsiJavaModule module) {
    PsiElement element = getStartContentElement(module);
    if (element == null) return false;
    while ((element = element.getNextSibling()) != null) {
      if (element.getNode().getElementType() == RBRACE) return true;
      if (!(element instanceof PsiWhiteSpace)) return false;
    }
    return true;
  }
private static boolean isEmptyModule(@NotNull PsiJavaModule module)