protected GrMethodWrapper(PsiMethod method, PsiSubstitutor substitutor) { super(method.getManager(), method.getName()); myWrappedMethod = method; setContainingClass(method.getContainingClass()); getModifierList().copyModifiers(method); getParameterList().copyParameters(method, substitutor, this); for (PsiTypeParameter parameter : method.getTypeParameters()) { getTypeParameterList().addParameter(new LightTypeParameter(parameter)); } if (method instanceof OriginInfoAwareElement) { setOriginInfo(((OriginInfoAwareElement)method).getOriginInfo()); } setReturnType(TYPE_MARKER); }
private boolean containsInMap(PsiTypeParameter typeParameter) { if(typeParameter instanceof LightTypeParameter && ((LightTypeParameter) typeParameter).useDelegateToSubstitute()) { typeParameter = ((LightTypeParameter) typeParameter).getDelegate(); } return mySubstitutionMap.containsKey(typeParameter); }
private PsiType getFromMap(@NotNull PsiTypeParameter typeParameter) { if(typeParameter instanceof LightTypeParameter && ((LightTypeParameter) typeParameter).useDelegateToSubstitute()) { typeParameter = ((LightTypeParameter) typeParameter).getDelegate(); } return mySubstitutionMap.get(typeParameter); }
private boolean containsInMap(PsiTypeParameter typeParameter) { if (typeParameter instanceof LightTypeParameter && ((LightTypeParameter)typeParameter).useDelegateToSubstitute()) { typeParameter = ((LightTypeParameter)typeParameter).getDelegate(); } return mySubstitutionMap.containsKey(typeParameter); }
private PsiType getFromMap(@NotNull PsiTypeParameter typeParameter) { if (typeParameter instanceof LightTypeParameter && ((LightTypeParameter)typeParameter).useDelegateToSubstitute()) { typeParameter = ((LightTypeParameter)typeParameter).getDelegate(); } return mySubstitutionMap.get(typeParameter); }
private boolean containsInMap(PsiTypeParameter typeParameter) { if (typeParameter instanceof LightTypeParameter) { typeParameter = ((LightTypeParameter)typeParameter).getDelegate(); } return mySubstitutionMap.containsKey(typeParameter); }
private PsiType getFromMap(PsiTypeParameter typeParameter) { if (typeParameter instanceof LightTypeParameter) { typeParameter = ((LightTypeParameter)typeParameter).getDelegate(); } return mySubstitutionMap.get(typeParameter); }