GrClosableBlock (@NotNull PsiAnnotation annotation, @NlsSafe @NotNull String attributeName) { PsiAnnotationMemberValue targetValue = annotation.findAttributeValue(attributeName); if (targetValue instanceof GrClosableBlock) { return (GrClosableBlock)targetValue; } return null; }