CompilationUnitTree unitTree = path.getCompilationUnit();
LineMap lineMap = unitTree.getLineMap();
SourcePositions positions = treeUtils.getSourcePositions();
AnnotationTree annotationTree = (AnnotationTree) path.getLeaf();
AssignmentTree assignTree =
(AssignmentTree) annotationTree.getArguments().get(0);
ExpressionTree exprTree = assignTree.getExpression();
ArrayList<Long> lines = new ArrayList<Long>();
if (exprTree.getKind() == Kind.STRING_LITERAL) {
long pos = positions.getStartPosition(unitTree, exprTree);
lines.add(lineMap.getLineNumber(pos));