JvmReferenceType[] interfaceTypes = currentPsiClass.getInterfaceTypes();
JvmReferenceType interfaceType = null;
for (JvmReferenceType type : interfaceTypes) {
if ("GenericJpaRepository".equals(type.getName())) {
interfaceType = type;
break;
}
}
Iterable<JvmType> jvmTypes = interfaceType.typeArguments();
JvmReferenceType type = (JvmReferenceType) jvmTypes.iterator().next();
String entityClassName = type.getName();