Implementation of JavaTypeSubstitutor without PSI