void (PsiType type, SuperTypeVisitor visitor) { if (type instanceof PsiPrimitiveType) { int index = PRIMITIVE_TYPES.indexOf(type); if (index >= 0) { for (int i = index + 1; i < PRIMITIVE_TYPES.size(); i++) { visitor.visitType(PRIMITIVE_TYPES.get(i)); } } } else { InheritanceUtil.processSuperTypes(type, false, aType -> { visitor.visitType(aType); return true; }); } }