@Override public Annotation[] getAnnotations() { if (annotationsCache == null) { final JClassType classOrInterface = getEnclosedMetaObject().isClassOrInterface(); if (classOrInterface != null) { annotationsCache = classOrInterface.getAnnotations(); } if (annotationsCache == null) { annotationsCache = new Annotation[0]; } } return annotationsCache; }