Boolean (final DefaultMutableTreeNode o) { final Object userObject = o.getUserObject(); if (userObject instanceof PsiMethod) { final PsiMethod method = (PsiMethod)userObject; return MethodParameterInjection.isInjectable(method.getReturnType(), method.getProject()) ? myData.get(method).isReturnFlag() : null; } else if (userObject instanceof PsiParameter parameter) { final PsiMethod method = getMethodByNode(o); final int index = method.getParameterList().getParameterIndex(parameter); return MethodParameterInjection.isInjectable(parameter.getType(), method.getProject()) ? myData.get(method).getParamFlags()[index] : null; } return null; }