boolean (@NotNull String name, int patternIndex, int nextOccurrence) { // uppercase should match either uppercase or a word start return !isUpperCase[patternIndex] || Character.isUpperCase(name.charAt(nextOccurrence)) || NameUtilCore.isWordStart(name, nextOccurrence) || // accept uppercase matching lowercase if the whole prefix is uppercase and case sensitivity allows that !myHasHumps && myOptions != NameUtil.MatchingCaseSensitivity.ALL; }