boolean (PsiClass aClass) { final PsiAnnotation annotation = AnnotationUtil.findAnnotation(aClass, RUN_WITH); if (annotation == null) { return false; } final PsiNameValuePair pair = AnnotationUtil.findDeclaredAttribute(annotation, null); if (pair == null) { return false; } final PsiAnnotationMemberValue value = pair.getValue(); if (!(value instanceof PsiClassObjectAccessExpression)) { return false; } final PsiTypeElement typeElement = ((PsiClassObjectAccessExpression)value).getOperand(); return typeElement.getType().getCanonicalText().equals(PARAMETERIZED_FQN); }