[BZ1051260] check permission for public static methods