/** * Creates {@link InstrumentationDefinition} for the given {@link ImmutableClassType}. Returns * <code>null</code> if class has no instrumentation points. * * @param classType * {@link ImmutableClassType} to create {@link InstrumentationDefinition} for. * @return {@link InstrumentationDefinition} for this class type or <code>null</code> if class * has no instrumentation points. */ private InstrumentationDefinition createInstrumentationResult(ImmutableClassType classType) { // if there are no instrumentation points return null if (!classType.hasInstrumentationPoints()) { return null; } InstrumentationDefinition instrumentationResult = new InstrumentationDefinition(classType.getFQN()); if (classType.hasInstrumentationPoints()) { instrumentationResult.setMethodInstrumentationConfigs(classType.getInstrumentationPoints()); } return instrumentationResult; }