code: private static void checkModifiers(final int type, final int modifiers) {
          for (int modifier = ABSTRACT; modifier <= STRICTFP; modifier++) {
              if (Modifier.isPrivate(modifiers) && !MODIFIERS_MATRIX[PRIVATE][type]) {
                  throwIllegalArgument(type, PRIVATE);
              }
              if (Modifier.isProtected(modifiers) && !MODIFIERS_MATRIX[PROTECTED][type]) {
                  throwIllegalArgument(type, PROTECTED);
              }
              if (Modifier.isPublic(modifiers) && !MODIFIERS_MATRIX[PUBLIC][type]) {
                  throwIllegalArgument(type, PUBLIC);
              }
              if (Modifier.isStatic(modifiers) && !MODIFIERS_MATRIX[STATIC][type]) {
                  throwIllegalArgument(type, STATIC);
              }
              if (Modifier.isAbstract(modifiers) && !MODIFIERS_MATRIX[ABSTRACT][type]) {
                  throwIllegalArgument(type, ABSTRACT);
              }
              if (Modifier.isFinal(modifiers) && !MODIFIERS_MATRIX[FINAL][type]) {
                  throwIllegalArgument(type, FINAL);
              }
              if (Modifier.isNative(modifiers) && !MODIFIERS_MATRIX[NATIVE][type]) {
                  throwIllegalArgument(type, NATIVE);
              }
              if (Modifier.isSynchronized(modifiers) && !MODIFIERS_MATRIX[SYNCHRONIZED][type]) {
                  throwIllegalArgument(type, SYNCHRONIZED);
              }
              if (Modifier.isTransient(modifiers) && !MODIFIERS_MATRIX[TRANSIENT][type]) {
                  throwIllegalArgument(type, TRANSIENT);
              }
              if (Modifier.isVolatile(modifiers) && !MODIFIERS_MATRIX[VOLATILE][type]) {
                  throwIllegalArgument(type, VOLATILE);
              }
              if (Modifier.isStrict(modifiers) && !MODIFIERS_MATRIX[STRICTFP][type]) {
                  throwIllegalArgument(type, STRICTFP);
              }
          }
      }
docs: CHECKSTYLE:OFF Cyclomatic complexity is OK here