public static boolean isInExcludedPackage(@NotNull final PsiClass psiClass) {
final String name = psiClass.getQualifiedName();
if (name == null) return false;
CodeInsightSettings cis = CodeInsightSettings.getInstance();
boolean isExcluded = false;
<BUG>for(int i=0; i<cis.EXCLUDED_PACKAGES.length; i++) {
if (name.startsWith(cis.EXCLUDED_PACKAGES [i])) {
isExcluded = true;</BUG>
}
}

public static boolean isInExcludedPackage(@NotNull final PsiClass psiClass) {
final String name = psiClass.getQualifiedName();
if (name == null) return false;
CodeInsightSettings cis = CodeInsightSettings.getInstance();
boolean isExcluded = false;
for (String packages : cis.EXCLUDED_PACKAGES) {
if (name.startsWith(packages)) {
isExcluded = true;
}
}
