public static boolean nodeProjectHasPermission(@NotNull DBNNode node, @NotNull String permissionName) {
        DBPProject ownerProject = node.getOwnerProjectOrNull();
        return ownerProject != null && ownerProject.hasRealmPermission(permissionName);
    }
Check whether the owner project of the specified node has required permissions
plugins/org.jkiss.dbeaver.ui.navigator/src/org/jkiss/dbeaver/ui/actions/ObjectPropertyTester.java