1. JvmReferenceType[] interfaceTypes = currentPsiClass.getInterfaceTypes();
    2. JvmReferenceType interfaceType = null;
    3. for (JvmReferenceType type : interfaceTypes) {
    4. if ("GenericJpaRepository".equals(type.getName())) {
    5. interfaceType = type;
    6. break;
    7. }
    8. }
    9. Iterable<JvmType> jvmTypes = interfaceType.typeArguments();
    10. JvmReferenceType type = (JvmReferenceType) jvmTypes.iterator().next();
    11. String entityClassName = type.getName();