private static boolean containsOrExtends(@NotNull Set<PsiClass> resolvedClasses,@NotNull PsiClass relatedActivity){
  if (resolvedClasses.contains(relatedActivity)) {
    return true;
  }
  for (  PsiClass resolvedClass : resolvedClasses) {
    if (relatedActivity.isInheritor(resolvedClass,false)) {
      return true;
    }
  }
  return false;
}

private static boolean containsOrExtends ( @ NotNull Set < PsiClass > resolvedClasses , @ NotNull PsiClass relatedActivity ) { if ( resolvedClasses . contains ( relatedActivity ) ) { return true ; } for ( PsiClass resolvedClass : resolvedClasses ) { if ( relatedActivity . isInheritor ( resolvedClass , false ) ) { return true ; } } return false ; }
returns true if the given associated activity class is either found in the given set of classes , or ( less likely ) extends any of the classes in that set
