LocalQuickFix (String hint) { if (hint == null) return null; final int spaceIdx = hint.indexOf(' '); if (spaceIdx == -1 || spaceIdx >= hint.length() - 1) return null; //invalid hint return new InlineParameterValueFix(hint.substring(0, spaceIdx), hint.substring(spaceIdx + 1)); }