code: @Descriptor("Gets info about the declarations available")
      public void declarations(@Descriptor("declarations [--type import|export]") String... parameters) {
          String type = getArgumentValue("--type", parameters);
          try {
              if ((type == null) || "import".equals(type)) {
                  List<ServiceReference> allServiceRef = getAllServiceRefs(ImportDeclaration.class);
                  displayDeclarationList(allServiceRef);
              }
  
              if ((type == null) || "export".equals(type)) {
                  List<ServiceReference> allServiceRef = getAllServiceRefs(ExportDeclaration.class);
                  displayDeclarationList(allServiceRef);
              }
          } catch (Exception e) {
              LOG.error("failed to execute command", e);
              print("failed to execute the command");
          }
      }
docs: ---------------- DECLARATION