public static boolean isPlainDirectory(@NotNull PsiDirectory directory) {
    return !ContainerUtil.exists(EP_NAME.getExtensions(), extension -> extension instanceof DirectoryAsPackageRenameHandlerBase<?> &&
                                                                       ((DirectoryAsPackageRenameHandlerBase<?>)extension).getPackage(directory) != null);
  }
public static boolean isPlainDirectory(@NotNull PsiDirectory directory)