docs: public static boolean isJavaArtifact(IResource resource) {
          if (resource == null || (resource.getType() != IResource.FILE)) {
              return false;
          }
          String ex = resource.getFileExtension();
          if ("java".equalsIgnoreCase(ex) || "class".equalsIgnoreCase(ex)) {
              return true;
          }
          String name = resource.getName();
          return Archive.isArchiveFileName(name);
      }