final int modifiers = type.getModifiers(); if (!Modifier.isAbstract(modifiers)) { final T candidate = createSafe(category, type, hints); if (candidate == null) { continue; candidate = createSafe(category, implementation, hints); } catch (FactoryNotFoundException exception) {