Boolean (@NotNull PsiElement pattern, @NotNull PsiElement candidate, @NotNull Match match) { final Parameter parameter = pattern.getUserData(PARAMETER); if (parameter == null || myMatchType == MatchType.EXACT && parameter.isFolded()) { return null; } if (!match.putParameter(parameter, candidate)) { return false; } if (parameter.isFolded() && pattern instanceof PsiExpression && candidate instanceof PsiExpression) { match.putFoldedExpressionMapping(parameter, (PsiExpression)pattern, (PsiExpression)candidate); } return true; }