int (@Nullable String tagName, @Nullable String version) { int rate = 0; if (tagName != null && myTags.contains(tagName)) { rate |= 0x02; } if (version != null && version.equals(myVersion)) { rate |= 0x01; } return rate; }