PsiClass (@NotNull PsiClass checkedClass, @NotNull RegistrationCheckerUtil.RegistrationType type) { final Set<PsiClass> types = RegistrationCheckerUtil.getRegistrationTypes(checkedClass, type); return ContainerUtil.getFirstItem(types); }