docs: @SuppressWarnings("restriction")
      public static List<WorkItem> getResources(ChangeSet set) {
          if (set != null && !set.isEmpty()) {
              IResource[] resources = set.getResources();
              List<WorkItem> filtered = new ArrayList<>();
              for (IResource resource : resources) {
                  if (resource.getType() == IResource.FILE && !Util.isJavaArtifact(resource)) {
                      // Ignore non java files
                      continue;
                  }
                  if (resource.exists()) {
                      // add only resources which are NOT deleted
                      filtered.add(new WorkItem(resource));
                  }
              }
              return filtered;
          }
          return EMPTY;
      }