PyCustomMember (final PsiElement psiElement) { myPsiPath = new PyPsiPath() { @Override public PsiElement resolve(@NotNull PsiElement context, @NotNull PyResolveContext resolveContext) { return psiElement; } }; return this; }