String (String packageName, String dirName) { int index = packageName.length(); while (index > 0) { int index1 = packageName.lastIndexOf('.', index - 1); String token = packageName.substring(index1 + 1, index); final boolean equalsToToken = dirName.equals(token); if (!equalsToToken) { String packagePrefix = packageName.substring(0, index); if (<warning descr="Condition 'packagePrefix.length() > 0' is always 'true'">packagePrefix.length() > 0</warning>) { return null; } return packagePrefix; } index = index1; } return null; }