void (final CharSequence chars, char @Nullable [] charsArray, int start, int end) { if (wordsFoundCount[0] == words.length) return; final int foundWordLen = end - start; Next: for (int i = 0; i < words.length; ++i) { final String localName = words[i]; if (wordsFound[i] || localName.length() != foundWordLen) continue; for (int j = 0; j < localName.length(); ++j) { if (chars.charAt(start + j) != localName.charAt(j)) continue Next; } wordsFound[i] = true; wordsFoundCount[0]++; break; } }