code: public boolean injectionPossible(Class<?> component) {
          String name = component.getName();
          LOGGER.debug("Try to find class {} in bundle {}", name, bundleContext.getBundle().getSymbolicName());
          String searchString = name.replaceAll("\\$\\$.*", "");
          searchString = searchString.replaceAll("\\$", "\\\\\\$"); // for nested and anonymous classes
          if (bundleResources.matches(".*" + searchString + ".*")) {
              LOGGER.trace("Found class {} in bundle {}", name, bundleContext.getBundle().getSymbolicName());
              return true;
          }
          LOGGER.trace("Class {} not available in bundle {}", name, bundleContext.getBundle().getSymbolicName());
          return false;
      }
docs: <p>injectionPossible.</p>
  
  @param component a {@link java.lang.Class} object.
  @return a boolean.