public static boolean isModuleContentRoot(@NotNull PsiDirectory directory) {
    return isModuleContentRoot(directory.getVirtualFile(), directory.getProject());
  }
public static boolean isModuleContentRoot(@NotNull PsiDirectory directory)