void (final DefaultMutableTreeNode o, final boolean value) { final Object userObject = o.getUserObject(); if (userObject instanceof PsiMethod) { myData.get((PsiMethod)userObject).setReturnFlag(value); } else if (userObject instanceof PsiParameter) { final PsiMethod method = getMethodByNode(o); final int index = method.getParameterList().getParameterIndex((PsiParameter)userObject); myData.get(method).getParamFlags()[index] = value; } }