code: private static boolean compatibleModifiers(int modifiersA, int modifiersB) {
          int mask = Modifier.PRIVATE | Modifier.PROTECTED | Modifier.PUBLIC | Modifier.STATIC;
          return (modifiersA & mask) == (modifiersB & mask);
      }
docs: Checks the compatibility between two modifier masks. Checks that they are equal
  with regards to access and static modifier.
  
  @return true if the modifiers are compatible