[name hints] settings ui cosmetics

This commit is contained in:
Yaroslav Lepenkin
2016-12-02 13:47:41 +03:00
parent 425a56febf
commit bb92553d33
5 changed files with 114 additions and 122 deletions
@@ -53,7 +53,7 @@ object JavaInlayHintsProvider {
if (params.isEmpty()) return false
if (params.size == 1) {
if (isBuilderLike(callExpression, method) || isSetterNamed(method)) return false
if (!ParameterNameHintsSettings.getInstance().isShowParamNameContainedInMethodName
if (ParameterNameHintsSettings.getInstance().isDoNotShowIfMethodNameContainsParameterName
&& isParamNameContainedInMethodName(params[0], method)) return false
}
return true