How do I get the type of a PsiClass: Entity Bean, SLSB, SFSB, or neither of it
Currently I check for annotations which obviously is incomplete, as even in EJB3 beans may be defined in deployment descriptor.
A tougher question:
How do I check if a given interface is the local interface for a session bean?
In EJB3 the interface may not have any annotations at all (when the session bean is annotated with @Local(MyLocalInterface.class).