boolean (@NotNull CompletionResultSet result, @Nullable JavaRunConfigurationBase settings, @NotNull JdkOptionsData data, int offset, @NotNull String text) { int optionStart = offset; while (optionStart > 0 && !Character.isWhitespace(text.charAt(optionStart - 1))) { if (text.charAt(optionStart - 1) == OPTION_VALUE_SEPRATOR) { return false; } optionStart--; } String optionText = text.substring(optionStart, offset); result = result.withPrefixMatcher(result.getPrefixMatcher().cloneWithPrefix(optionText)); addDashOptions(result, settings, data); return true; }