ParenthesesInsertHandler<LookupElement> (final boolean hasParameters, final boolean spaceBeforeParentheses, final boolean spaceBetweenParentheses, final boolean insertRightParenthesis, boolean allowParametersOnNextLine) { return new ParenthesesInsertHandler<>(spaceBeforeParentheses, spaceBetweenParentheses, insertRightParenthesis, allowParametersOnNextLine) { @Override protected boolean placeCaretInsideParentheses(InsertionContext context, LookupElement item) { return hasParameters; } }; }