private ModuleDeclaration getModuleDeclaration(IBuildContext context) {

    ISourceModule sourceModule = context.getSourceModule();
    ModuleDeclaration moduleDeclaration = SourceParserUtil.getModuleDeclaration(sourceModule);

    return moduleDeclaration;
  }
  @Override
  public void build(IBuildContext context) throws CoreException {

    try {

      IFile file = context.getFile();

      ModuleDeclaration module = getModuleDeclaration(context);

      if (file.getFileExtension().equals("php")) {
        module.traverse(new AnnotationVisitor(context));
      }

    } catch (Exception e) {

      Logger.logException(e);
    }
  }